Viewing 15 posts - 76 through 90 (of 94 total)
It sounds like you need to evaluate the individual date parts instead of the whole date. Something like this might work.
SELECT *
FROM #Month
WHERE DATEPART(dd, DateCreated) = DATEPART(dd, GetDate()) AND...
February 3, 2009 at 7:41 am
Srikanth,
Visio determines the relationships based on the primary/foreign key relationships that are in the database. Does the database that you are reverse engineering have those relationships? If...
January 29, 2009 at 7:31 am
In Visio, there is an option to reverse engineer a database. It works pretty well. I've never been a fan of the built-in database diagrams.
Greg
January 29, 2009 at 6:22 am
Another option is to pull those distinct values into their own table, basically a subset table, where the UNIQUEIDENTIFIER can be your primary key. Then you would have a...
January 28, 2009 at 9:08 am
The username needs to be in [brackets] like this:
GRANT EXEC ON dbo.plcStoredProc to [Domain\rptsqluser1]
Hope this helps,
Greg
January 22, 2009 at 2:52 pm
You're right. CTEs are limited in that they are meant to be a one-time view that gets used immediately and then destroyed. To do what you intend, you...
November 10, 2008 at 9:01 am
CTEs can be used to replace derived tables, temporary tables or table variables. They tend to be more readable than using nested subqueries. In fact, they're very good...
November 10, 2008 at 8:07 am
JohnG (11/6/2008)
G² (11/6/2008)
November 6, 2008 at 8:52 am
It was my understanding that varchar(max) was meant to be a replacement to the text data type because of the issue that this question raises as well as other like:
Being...
November 6, 2008 at 8:35 am
I didn't see the answer in the link provided. I found this:
"The data collector stores data in two places: msdb and the management data warehouse."
On this page:
September 29, 2008 at 6:03 am
I'm confused as well. The question asked if the queries were the same, not if the result sets were the same. According to the link you supplied, the...
September 23, 2008 at 8:56 am
The second example that you gave is syntactically correct. The colors have to be in double quotes. For some reason, it seems like it's having an issue with...
September 17, 2008 at 2:08 pm
If the other developer is connecting to your SQL Server, he can use the linked server that you created. If your intention is for him to connect to the...
September 15, 2008 at 7:08 am
This isn't a registerable DLL. But I've tried replacing it with no luck. It's doesn't seem to be this DLL specifically anyway. There's an underlying process that...
January 29, 2008 at 8:15 am
Viewing 15 posts - 76 through 90 (of 94 total)