Forum: MS SQL Aug 15th, 2008 |
| Replies: 1 Views: 3,211 Hi,
What do you mean by table variable??? |
Forum: MS SQL Aug 15th, 2008 |
| Replies: 1 Views: 3,088 Hi,
What are you using Access, MSSQL 2000 or MSSQL 2005 |
Forum: MS SQL Aug 15th, 2008 |
| Replies: 1 Views: 2,864 Hi,
My friend, your question have nothing to do with MSSQL, you should have posted it in Vb.net forum and i think you will need to use Cellstye.forecolor=Color.green |
Forum: MS SQL Aug 15th, 2008 |
| Replies: 1 Views: 750 Hi,
This is an excellent forum but it is not specialized in DBs. In fact you will find alot of sites only intrested in MSSQL but I don't think you will find those expert examples you are looking... |
Forum: MS SQL Aug 15th, 2008 |
| Replies: 1 Views: 1,064 Hi,
I don't know if I got u but try:
SELECT TOP 1 part_no, curr_date, cost_layer_qty
FROM inv_tran
WHERE (cost_layer_qty < 0)
ORDER BY cost_layer_qty DESC
Hope this works for you. |
Forum: MS SQL Aug 15th, 2008 |
| Replies: 1 Views: 618 Hi,
Try this:
SELECT CONVERT(varchar, BROUTE) + ' ' + CONVERT(varchar, BACCOUNT) AS [Group], SUM([VALUE]) AS Total
FROM tblExample
GROUP BY CONVERT(varchar, BROUTE) + ' ' + CONVERT(varchar,... |
Forum: MS SQL Dec 31st, 2007 |
| Replies: 2 Views: 806 Hi,
How are you updating the table. 10K is not that big number when speaking about data bases. |
Forum: MS SQL Dec 23rd, 2007 |
| Replies: 1 Views: 790 Hi,
Create a stores procedure (called ex: CustInfo) and forward it the customer code to search for. The body of the procedure will be:
CREATE PROCEDURE CustInfo(@CustCod int) AS
IF (Select... |
Forum: MS SQL Dec 10th, 2007 |
| Replies: 3 Views: 1,408 Hi,
You have to ways either export data from MSSQL to Excel or import it from excel to mssql:
For the first choose the database >> right click >> All tasks >> Export data >> choose the data... |
Forum: MS SQL Dec 9th, 2007 |
| Replies: 3 Views: 1,408 Hi,
There are 2 ways, detach, backup, and attach. Or generate Script.
First the first one you will need to right click database and in all tasks sub menu choose detach database. Now go to the... |
Forum: MS SQL Nov 1st, 2007 |
| Replies: 2 Views: 1,818 Hi,
You have to use the EXEC function but after some conc. ex:
EXEC('select ' + '14200 * 5')
you may need to use stored procedures. |
Forum: MS SQL Sep 4th, 2007 |
| Replies: 1 Views: 1,603 Hi,
The problem that you will have to Detach the Database (which will disconect it) copy the files xxx.mdf and xxx.ldf from the "C:\Program Files\Microsoft SQL Server\MSSQL\Data" folder reattach... |
Forum: MS SQL Sep 1st, 2007 |
| Replies: 2 Views: 6,162 Hi,
Or add .0 to the numbers:
select convert(decimal(5,2),(7058.0/7482.0)*100 ,0) |