Viewing 15 posts - 181 through 195 (of 458 total)
Not sure if this is it but as I recall I think this is the fastest:
SELECT DATEADD(dd, CONVERT(FLOAT, GETDATE()), 0)
May 9, 2007 at 11:09 am
There's an article somewhere on this site called "Windows Utilities for the Database Administrator" or something to that effect which goes into the usage of FORFILES to do something like...
May 1, 2007 at 4:37 pm
I don't believe you can do IF... BEGIN TRY. I think you need to do something like this:
IF (something)
BEGIN
BEGIN TRY
...
April 30, 2007 at 11:41 am
They're no longer system tables, they're now system catalog views technically.
If you're trying to remap users, look into sp_change_users_login.
April 26, 2007 at 12:22 pm
If all the code to generate the recordset is inside a procedure, change the command type of the data set to "StoredProcedure" and just use the stored procedure name.
April 25, 2007 at 3:44 pm
By default the installation goes to:
C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SqlWb.exe
April 25, 2007 at 3:28 pm
Or you can use sp_help 'tablename'.
April 25, 2007 at 10:29 am
Normalization rules would dictate that if every value in that column is a specific and different attribute of the entity then you should keep them there. So long as...
April 24, 2007 at 10:58 am
If I'm reading you correctly, I wouldn't use a default. All a default allows you to do is specify a value to be entered for new records if no...
April 23, 2007 at 2:33 pm
Table variables can be treated a great deal like tables (with some exceptions).
DECLARE@tablevarTABLE (
idcolumnint
,column3nvarchar ( 50 )
)
... later...
SELECTx.column1, x.column2, y.column3
FROMdbo.table1 x
JOIN@tablevar y
ONx.idcolumn = y.idcolumn
April 19, 2007 at 9:26 am
I'd only be concerned if you see this same behavior on larger tables/indexes.
As for not being able to rebuild online you need to really understand what's going on. If...
April 18, 2007 at 3:24 pm
If I'm reading that right there's only 6 data pages in the entire index. What's your rowcount on that table?
I've noticed that the index recommendations kind of fall apart...
April 18, 2007 at 2:57 pm
In that case you're using a feature which is only available in the enterprise edition of the software. There shouldn't be any difference in the rest of the features.
Try...
April 18, 2007 at 2:40 pm
Why not use t-sql to do it?
ALTER INDEX some_index ON some_table REBUILD
April 18, 2007 at 2:16 pm
Viewing 15 posts - 181 through 195 (of 458 total)