Viewing 15 posts - 736 through 750 (of 907 total)
Here is an example of a way you can retrieve 10-15 without a cursor using the top and order by clauses.
Create table top_test (id int identity, description char(1))
insert into top_test...
September 25, 2002 at 7:28 pm
Basically the views are not created in the correct order. We have views that use views so probably this has something to do with it. So if you...
September 25, 2002 at 7:06 pm
make that typo:
update abc set
@Hellobye = v1 = isnull(v1,@Hellobye),
@Hellobye2 = v2 = isnull(v2,@Hellobye2)
basically I think you want to set @Hellobye2 (instead of @Hellobye)to v2, or @hellobye2.
Gregory Larsen, DBA
If...
September 25, 2002 at 4:48 pm
It looks to me, that Prakash's solution sets the V1 to the prior V1, and V2 to the prior V2, by saving the prior v1 in variable @Hellobye, and prior...
September 25, 2002 at 4:43 pm
From BOL ....
....in the sysdtspackages table in the SQL Server msdb database as BLOB (binary large object) data.
...
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my...
September 25, 2002 at 2:33 pm
Possible something like this will work for you.
create table sales (account int, month int, part int, amt money)
insert into sales values(1,6,1,1)
insert into sales values(1,7,1,1)
insert into sales values(1,8,1,1)
insert into sales values(1,9,2,1)
insert...
September 25, 2002 at 12:10 pm
I assume this message is coming from "job history" "step details" information. The job history step details, don't always contain the real error. You might be able to use...
September 25, 2002 at 11:28 am
I'm not aware of one, but you could build your own, it think. If I needed to do that I would consider changing your "Security" "Audit" level to "All",...
September 25, 2002 at 9:18 am
If I understand you correctly you want some code that will schedule a job. Here is some code that will schedule job "ADRN1303 TRIGGER" to run in 15 minutes...
September 25, 2002 at 9:06 am
You might consider using a linked server from your dedicated machine to your production machine. This way from your dedicated machine you can launch jobs on your production machine...
September 25, 2002 at 8:37 am
If you truly don't want to keep any transaction log information, to keep the transaction log small your might consider changing your "Recover Model" to "Simple" if you are in...
September 25, 2002 at 8:29 am
You can schedule whatever you want using a SQL Server Agent job. If you look in EM there is a directory called "Management" under that there is another directory...
September 25, 2002 at 8:13 am
Yep. I think you got it....
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples
September 25, 2002 at 8:05 am
You need to remove the WHERE clause the "Get the employee supervisor record" select statement. This statement is causing you to never return any supervisor records because supervisor records...
September 25, 2002 at 7:58 am
You could easily output the column_name and the value with something like this:
use pubs
select 'title_id',title_id,'title',title from titles
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my website at...
September 24, 2002 at 12:40 pm
Viewing 15 posts - 736 through 750 (of 907 total)