Viewing 15 posts - 586 through 600 (of 1,109 total)
Imke Cronje (11/29/2007)
I tried using this script below. But I'm getting the following error:
Incorrect syntax near the keyword 'BEGIN'.
create proc sp__Test
as
set rowcount 1000
while (select * from [Table] with (nolock)...
November 29, 2007 at 7:14 am
You can download it from Microsoft's Codeplex site http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx?ReleaseId=4004
Do read the instructions (after the install you will need to attach the extracted database files, but this is detailed in the...
November 29, 2007 at 7:10 am
You can use the UPDATE() or COLUMNS_UPDATED in trigger bodies to find out if a particular column has been updated.
You can see a full example in Books Online http://msdn2.microsoft.com/en-us/library/ms187326.aspx
It would...
November 29, 2007 at 4:59 am
Imke Cronje (11/29/2007)
Thanks... I only want to delete specific data from a particular monthRegards
Imke
In this case "set rowcount" can work. Note that cascading operations are not adding to the affected...
November 29, 2007 at 3:53 am
Imke Cronje (11/29/2007)
Does anyone have a script/stored proc that will delete data in small batches at a time so that the transaction logs in the database does not grow very...
November 29, 2007 at 3:43 am
ckmoied (11/28/2007)
Query:
select Task Task,coalesce(cast(Added as varchar(10)),'') Added,coalesce(cast(Updated as varchar(10)),'') Updated, [Time] [Time(ms)], Message Message from MyTable
Results:
Task ...
November 28, 2007 at 2:19 am
Manu Raj Patel (11/27/2007)
Hi :),I am developing an Application same as Query Analyser. But unable to parse a query through my application.
Please advise...
Maybe I do not understand you correctly (sorry...
November 27, 2007 at 2:21 am
GilaMonster (11/26/2007)
November 26, 2007 at 8:23 am
GilaMonster (11/26/2007)
Count(*) or count(1) or similar will give you the number of rows in the table. Count(ColumnName) will give you the number of rows where that column is not...
November 26, 2007 at 7:55 am
Abhijit (11/26/2007)
I have written 1 Query in 3 ways.
Select COUNT(1) FROM table1
Select COUNT(*) FROM table1
Select COUNT(Col1) FROM table1
My Question is I m getting the same execution plan for the...
November 26, 2007 at 6:47 am
zeeshan malik (11/26/2007)
November 26, 2007 at 6:42 am
zeeshan malik (11/26/2007)
November 26, 2007 at 6:29 am
This problem has been discussed a few times, so you may want to look at the common solutions to these.
An example is http://www.sqlservercentral.com/Forums/Topic411513-338-2.aspx
The easiest to find these is if you...
November 26, 2007 at 4:58 am
The problems with the order may be because of messed up sysdepends or sys.sql_dependencies table. 2008 will help, but until then third party tools are the easy way. Red Gate's...
November 26, 2007 at 4:02 am
Check your indexed views and whether they were created with ansi nulls and quoted identifiers set to on.
You can get this information from sys.sql_modules (on 2005) or by using the...
November 26, 2007 at 3:12 am
Viewing 15 posts - 586 through 600 (of 1,109 total)