Viewing 15 posts - 781 through 795 (of 1,156 total)
How about?
select distinct CustNumber
from dbo.InvoicesView
where Year(InvoiceDate) >= 2003
January 25, 2008 at 8:06 am
Gotcha, I misunderstood the problem.
I am glad everything worked out and thanks for the feedback.:)
January 17, 2008 at 3:12 pm
The problem with this syntax is you can return a name id without Specialty = 'X1' because the outerquery is only looking for NameIDs. If a NameID has two...
January 17, 2008 at 11:57 am
You'll need to use the WRITETEXT function to do that. It's a little complex, with pointers and such, but it can be done. Books Online gives the details. Look...
January 17, 2008 at 11:36 am
Sorry, I assumed that you were using SQL 2005 because this is posted in the SQL 2005 forum. In SQL Server 2005 a varchar(max) can hold up to 2GB...
January 17, 2008 at 11:35 am
Use varchar(Max)
convert(varchar(max), dt) + ' ' + convert(varchar(max), dt1)
January 17, 2008 at 10:46 am
To addon to Lowell post you could also check for the existance of the flag and then start the job; otherwise, just finish up
IF EXISTS(SELECT STATUS FROM SOMETABLE WHERE STATUS='READY')...
January 17, 2008 at 10:34 am
I would agree with the process running table. You should segregate the process into separate jobs like Steve and Lowell said. This way the second process will never...
January 17, 2008 at 9:43 am
Thanks for that, yes I'd seen that the 'Audit Schema Object Access Event' trace option might pick it up so I could use that. I'll test it. Could you let...
January 17, 2008 at 8:31 am
Your only other option is to turn on the logging option, but keep in mind that it is not 100% accurate because it can miss events.
January 17, 2008 at 8:01 am
Unfortunately, you will not be able to track this information with triggers. Therea re two types of triggers DDL and DML. DDL triggers only fire for schema changes...
January 17, 2008 at 7:56 am
NP 🙂
I knew what you meant. I just wanted to correct it for other posters.
January 17, 2008 at 7:09 am
Ankit,
The only thing you need to be careful of when having a database in Simple Recovery is that you are restricted to restoring to your latest database backup whether it...
January 17, 2008 at 6:55 am
Sandy,
Why do you need this particular code? It seems like homework.
Here is a hint.
You should use the sum of log(sid) and natural logarithm 2.71828182845905 (sql has built in function for...
January 17, 2008 at 12:04 am
The problem is the SID do not match in the restored database. You have to make the SID match in the master database or drop/create the database user logins.
January 16, 2008 at 10:32 pm
Viewing 15 posts - 781 through 795 (of 1,156 total)