Viewing 15 posts - 5,311 through 5,325 (of 6,679 total)
This is really going to depend upon the server that you are linked to. If that server is SQL Server 2005 or 2008, you could use the following:
SELECT {columns}
...
April 21, 2009 at 5:03 pm
You can try rebuilding the indexes:
ALTER INDEX ALL ON yourtable REBUILD;
If that doesn't work, verify that you have a clustered index on the table. If you don't have a...
April 21, 2009 at 4:19 pm
Reviewing this article http://support.microsoft.com/kb/828339 tells us that we may not see errors using CHECKDB for an intermittent hardware problem.
Since you are getting these on a regular basis - you are...
April 21, 2009 at 3:22 pm
David, I wouldn't think so either - but, it really depends on how large the stored procedures were. They are looking at 8000 procedures that were removed, which could...
April 21, 2009 at 2:59 pm
moramoga (4/21/2009)
1. I deleted all software, hardware, material and travel records.
2. I inserted 1000$ for project TEST in...
April 21, 2009 at 2:04 pm
You will need to use dynamic SQL:
Use Apr09;
Declare @bulk_cmd varchar(1000);
Set @bulk_cmd = 'BULK INSERT Ramses
FROM ''G:\Ramses Logs\''' + CONVERT(VARCHAR,GETDATE(),112) + '-Ramsesapp.csv''
WITH
(
FIELDTERMINATOR = ''',''',
ROWTERMINATOR = '''')'
Execute(@bulk_cmd);
Make sure you match up the...
April 21, 2009 at 1:52 pm
It really is not clear what you are trying to do. Please review the article I link to in my signature and post some samples that we can work...
April 21, 2009 at 1:45 pm
Also - you really should not be using the return value from a stored procedure for anything other than the status. I would recommend using an output parameter for...
April 21, 2009 at 1:28 pm
David O (4/21/2009)
April 21, 2009 at 1:13 pm
Is this a stored procedure - and does the stored procedure use parameters? Do you create variables and use the variables in the queries for this procedure?
Just thinking this...
April 21, 2009 at 1:10 pm
Right - I was not recommending shrinking the database. Only, if absolutely required - because you are never going to grow the datafile again, ever - then you can...
April 21, 2009 at 12:59 pm
Cat (4/21/2009)
Windows XP on client machines comes with SQL Server ODBC Driver for 2000.
Soon clients will have to connect...
April 21, 2009 at 12:40 pm
David O (4/21/2009)
go
DBCC SHRINKDATABASE('your_database_name_here', NOTRUNCATE)
go
DBCC SHRINKDATABASE('your_database_name_here', TRUNCATEONLY)
go
This command will shrink the database and should be run off hours. As always when making a change to adatabase have a...
April 21, 2009 at 12:36 pm
Bob has outlined one of the ways you can approach this, however - that solution won't utilize any indexes on the date columns if they exist. If all you...
April 21, 2009 at 11:23 am
Viewing 15 posts - 5,311 through 5,325 (of 6,679 total)