Viewing 15 posts - 16 through 30 (of 30 total)
You can set a default database in user login level .Run below system proc to set your default database .
Exec sp_defaultdb @loginame='ur Login', @defdb='sims'
This sets by default database as sims...
January 12, 2014 at 7:56 am
Can you please re-frame your question..
if you are connecting by using connection string via application,you will not be having issues . Or if you are talking about in query...
January 12, 2014 at 7:03 am
Jeff Moden (1/4/2014)
sql crazy kid (1/4/2014)
Hello Jeff,Correct me if any performance hit if i rephrased code as like below .
select
*
from
@MyData
where
EndDate > (DATEADD(dd,-15,@CurrDate)-DAY(DATEADD(dd,-15,@CurrDate))) and
EndDate <= (DATEADD(mm,1,DATEADD(dd,-15,@CurrDate)-DAY(DATEADD(dd,-15,@CurrDate))))
That would be better performance...
January 4, 2014 at 10:43 pm
Jeff Moden (1/4/2014)
sql crazy kid (1/4/2014)
First i would thank to Michael ,i never known in date function by default 0 treat as beginning of the date[1900-01-01] which drives here to...
January 4, 2014 at 11:01 am
Hello,
First i would thank to Michael ,i never known in date function by default 0 treat as beginning of the date[1900-01-01] which drives here to get the corresponding start and...
January 4, 2014 at 10:12 am
Jeff Moden (1/2/2014)
Markus (1/2/2014)
I guess the question remains... why would you drop a clustered index on a table?
I can see doing it only if you need to change the keys...
January 2, 2014 at 10:33 am
Jeff Moden (1/1/2014)
sql crazy kid (12/31/2013)
Will all the non clustered index drop...
January 1, 2014 at 1:06 am
Jeff Moden (12/29/2013)
December 29, 2013 at 10:18 pm
Kindly give some more ideas about Internal architecture of Non Leaf nodes.
As per my understanding this having page header,index rows which helps to find next Non Leaf node/Leaf...
December 28, 2013 at 11:02 pm
CDC configured on SQL database and tables. So you will be able to get the list of tables which is part of CDC.
Table cdc.change_tables returns list of all the tables...
December 28, 2013 at 8:47 am
Structured Query Language has it's own coding standards, your question is beyond that.You should follow that,it would help you to solve your problem.
I suggest start with mssql library.
December 28, 2013 at 6:59 am
You should define your input parameter as "@Poll_I int out".
Also the called application should have variable to set your output as like below
declare @Poll int
InsertNewPoll @varquestion ='TestQst',@Poll OUT
More...
December 28, 2013 at 3:22 am
Clustered index always seen sorted table in physical order, As per the previous this is not necessarily stored in physical order,Is there any specific case clustered index not sorted...
December 27, 2013 at 9:50 pm
Hello dear,
please tryout this . I assume from your query string is not limited to 2 commas .
Declare @strsql varchar(50),@chrindex int
set @strsql = 'AA,BB,C,D'
select @strsql --print original val
select @chrindex=CHARINDEX(',',@strsql,1)
select...
May 12, 2013 at 11:54 am
Viewing 15 posts - 16 through 30 (of 30 total)