Viewing 15 posts - 4,561 through 4,575 (of 7,505 total)
1) what's the info in the job step history.
2) your first step should work, you'll need to add ", replace" if you want to overwrite the current db !
3) you...
September 10, 2008 at 11:59 pm
how about...
declare @startdate datetime, @enddate datetime
SELECT @startdate = dateadd(dd, (-6 - DATEPART (dw, getdate())),DATEADD(dd,DATEDIFF(dd,0,getdate()),0))
, @enddate = DATEADD(dd,DATEDIFF(dd,0,getdate())+ 1 ,0)
print convert(varchar(26), @startdate,121)
select yourcolumn list
from yourtable
where thedatetimecolumn between...
September 10, 2008 at 11:54 pm
proving once again one should provide index on a FK column,
unless actually tested that it hurts that particular system.
September 10, 2008 at 12:39 pm
Well, if there is no "default" value that can be justified at logical database schema design, there will be no default value at physical fase.
Having a column without a default...
September 10, 2008 at 12:35 pm
good gut feeling :w00t:
It depends what's the definition for the particular view.
e.g.
[Code]
Create view myview
as
select col1, col2
from mytable
where thekey = 15
go
Select * from myview
[/code]
Will most likely not do as...
September 10, 2008 at 12:29 pm
e.g.
This one will map sqlaccount sa to the dbo user of your db.
Check BOL
exec sp_changedbowner 'sa', true
September 10, 2008 at 12:16 pm
you could just embed your primary query ...
Select nestsel.*,
mkt_rate = dbo.get_mkt_rate( ,...),
pipsaway = dbo.Calc_Pips_Away(nestsel.ticket,
...
September 10, 2008 at 12:13 pm
just my 2ct.
You could also consider a constraint to be meta data for your database. This way it needs to be part of your system.
Having it as a constraint will...
September 10, 2008 at 12:07 pm
Also a nice tool for this can be SQLCMD
If you have an inventory table containing all your sqlserver instance names, you can run a script and save all results,....
Create a...
September 10, 2008 at 12:00 pm
barb.wendling (9/10/2008)
September 10, 2008 at 7:45 am
Most of my jobs only have step with "Fail job if step fails", so I've only checked for the failed steps.
This version only reports if the actual job failed...
September 10, 2008 at 5:20 am
You need to use SSMS (SQL 2005) to get the result aimed for with the question.
Apparently it's SSMS that puls this trick !
Indeed With Query Analyser, you'll get the syntax...
September 10, 2008 at 4:49 am
Keep in mind SSMS has some issues with e.g. char(13) resulting in a "syntax error near ...."
And off course you'll need to have the default 'go' for batch separator...
September 10, 2008 at 3:59 am
sqlserver timestamp is "for internal use only" !!
This kind of columns will be updated by sqlserver itself with every modification to the row !!
This is not a datetime column !!!
We...
September 9, 2008 at 7:53 am
Considerations for the "autogrow" and "autoshrink" settings in SQL Server
September 9, 2008 at 1:29 am
Viewing 15 posts - 4,561 through 4,575 (of 7,505 total)