Viewing 15 posts - 181 through 195 (of 212 total)
And you are absolutely sure you are using the correct domain account password?
December 31, 2009 at 9:19 am
Pinal Dave (sqlauthority.com) has a great collection of SQL Server term and concept definitions at http://blog.sqlauthority.com/2008/09/20/sql-server-2008-interview-questions-and-answers-complete-list-download/[/url]. They are labeled 'SQL Server 2008 interview questions and answers,' but should be...
December 25, 2009 at 4:58 pm
Ray K (12/18/2009)
December 18, 2009 at 12:40 pm
Jeff Moden (12/6/2009)
This will do it...
;
WITH
ctePreAgg AS
(
SELECT Name1,
...
December 9, 2009 at 9:59 am
how do i determine the no of instances on sql server unding t sql or anyother method . and how do i know total size of harddisk .
please let me...
December 9, 2009 at 8:56 am
A primary key is a constraint that uniquely identifies every row in a table. It forces a unique value for that field of every record. It...
December 8, 2009 at 1:18 pm
You don't need to use a cursor or a loop. You can update the DailyPercent col for a particular month like this:
update DailySalesTable
set DailyPercent = Sales/(
select sum(Sales)
from DailySalesTable...
December 8, 2009 at 12:22 pm
Actually, now that I see your query, I think the problem may be resolved by using a FULL OUTER JOIN in place of a LEFT OUTER JOIN.
December 8, 2009 at 11:25 am
Why can't you just use ISNULL to replace the null value with a zero?
December 8, 2009 at 11:14 am
The more important question is "Why do you think that you need to do this?" Generally the preferred approach to provide this information is to just calculate it on request:
SELECT...
December 8, 2009 at 9:08 am
Yes, I think a an insert trigger would be the simplest solution. I made an example for you, using the Northwind Orders and Order Details tables. 'TriggeredDetails' is...
December 8, 2009 at 8:42 am
Try setting the date variable in SQL Server, not Windows:
select @setdate = cast(datename(year, getdate())as varchar(10))+'_'+cast(datepart(month, getdate())as varchar(10))
select @CreateDir='mkdir G:\Testing\test1\'+@setdate
That way, your @CreateDir var prints:
mkdir G:\Testing\test1\2009_12
Windows assumes that %folderdate% is a...
December 8, 2009 at 7:40 am
I guess I come back to the fact that for there to be a clean methodology I either need to have a delimiter or a set size to chop off...
December 8, 2009 at 7:23 am
Do I substitute '[image]' in place of '[NULL VALUE]' for this line?
No, the '[NULL VALUE]' string that I substituted is just a placeholder. You could put anything in there...
December 8, 2009 at 7:16 am
Wrap each QUOTENAME function instance with an ISNULL function:
select 'Select '
+ ISNULL(QUOTENAME(NoteID,''''),'[NULL VALUE]')+ ','
+ ISNULL(QUOTENAME(CompanyID, ''''),'[NULL VALUE]') + ','
...
from dbo.NOTE_tblNote
December 7, 2009 at 7:21 pm
Viewing 15 posts - 181 through 195 (of 212 total)