Viewing 15 posts - 46 through 60 (of 153 total)
Hi,
Use the following Function....
CREATE FUNCTION fn_getrowsfrmCSVstring(@str varchar(max))
returns @rtn table (id int identity(1,1),value varchar(2000))
As
Begin
Declare
@mstr varchar(max),@i INT,@len INT
SELECT @mstr=@str,@len=LEN(@str),@i=1
...
October 22, 2013 at 3:53 am
use ORDER BY CboValuesTranslations.cboValueTranslationName Asc
for 1st Select statement and then use union with 2nd select statement.
or
Write a Select on top of Statements and then sort...
October 16, 2013 at 3:26 am
Use the following code...
SET @STRSQL = 'SELECT ''' + REPLACE(@P,',',''' as Col,''') + ''''+' as lst'
OR
SET @STRSQL = 'SELECT ''' + REPLACE(@P,',',''' ,''') + ''''
If you are sure...
October 4, 2013 at 12:54 am
Hi,
It should work...
Run the below statement and then insert values..
SET IDENTITY_INSERT IdentityProducts OFF
insert into IdentityProducts(productname,categoryid,unitprice)
values
('shad',1,100)
October 4, 2013 at 12:39 am
Use Charindex function...
the following example will bring string from first letter to First Space
SUBSTRING( @STR, 1, CHARINDEX(' ',@str) )
U can loop the string until u reach End of...
April 1, 2013 at 10:06 pm
Did u check SQL Server2 account has permission on Shared Folder?
March 27, 2013 at 6:52 am
Once you generated Script, plz remove the ID ...
Bcoz once u execute the same script on Test , SQL Server of test Environment will generate id.
March 27, 2013 at 6:45 am
Why dont you can delete the Profile which you are using for Alerts..
March 27, 2013 at 6:35 am
Plz go through the link given below...
http://dilipparakala.blogspot.com/2013/02/forgot-sa-password-and-none-of-user-is.html
March 27, 2013 at 6:09 am
CREATE Proc usersbyLocation(@locids varchar(max)=NULL)
AS
BEGIN
Declare @STR varchar(max)
SET @STR='SELECTUserID,
UserForename,
UserSurname,
LocationName
fromtUser JOIN
tLocation on tUser.locationID=tLocation.LocationID
Where tLocation.LocationID in ('+@locids+')'
PRINT @locids
Exec (@str)
END
--Test
--Exec usersbyLocation '1,2,3,4,5,6'
March 25, 2013 at 6:29 am
Generate Config files for Dev, Test and Prod environment. [ Values to SSIS package variables like File Paths,Server Name , DB name connections,etc..]
SSIS package is same across all environments. which...
March 25, 2013 at 4:23 am
Use snapshot for Reporting purpose.
For every minute, you can use log shipping for Ur requirement..
March 12, 2013 at 4:59 am
SUBSTRING ( expression ,start , length )
SELECT SUBSTRING( 'Feb 18 2013 3:35PM', LEN('Feb 18 2013 3:35PM')-7, 6)
March 4, 2013 at 4:15 am
For Next Step execution based on result from SP:-
Double click on the Connection Arrow as success and constraint as follows
@SSISVariable==1
Just leave with above condition
if condition not satisfied it...
March 4, 2013 at 2:59 am
SELECT cls.Cname as Code,Amnt.Currency,ISNULL(Amnt.Amount,'NA') Amount
FROM CLASS cls FULL JOIN Amount Amnt ON cls.code=Amnt.Code
ORDER BY Amnt.Currency
Try the above one...
March 4, 2013 at 1:50 am
Viewing 15 posts - 46 through 60 (of 153 total)