Viewing 14 posts - 1 through 14 (of 14 total)
/*
I am not telling this is the best way but hope this can help u
*/
create table #table
(
Description varchar(max)
)
insert into #table (Description) values('Speed');
insert into #table (Description) values('jhg j jg jgkjhg jh...
July 31, 2009 at 4:50 am
1. make i/p parameter as string like:
@input = ',speed,fuelEfficient,sportsUtility'
Now Search like this:
SELECT * FROM #temp
WHERE
',' +@input + ','LIKE '%,' + Description + ',%'
July 29, 2009 at 6:06 am
---Below command will solve ur problem
BACKUP LOG WITH TRUNCATE_ONLY
GO
DBCC SHRINKFILE ()
July 29, 2009 at 5:52 am
Following statement tells about details of db file:
SP_HELPFILE
July 29, 2009 at 5:32 am
/*
This example will clear your doubts.
*/
---Creating tables
CREATE TABLE tbl1
(
IdINT,
FNameVARCHAR(1)
)
CREATE TABLE tbl2
(
IdINT,
FNameVARCHAR(1)
)
--Insert records to table
INSERT INTO tbl1
VALUES(1,'A')
INSERT INTO tbl1
VALUES(2,'B')
INSERT INTO tbl1
VALUES(3,'C')
INSERT INTO tbl1
VALUES(4,'D')
INSERT INTO tbl2
VALUES(1,'A')
INSERT INTO tbl2
VALUES(2,'B')
--Inner join will return...
July 29, 2009 at 2:41 am
If u want all the records from table 1 whether it does match or doesn't match with table2, Then u consider left outer join or right outer join. But...
July 29, 2009 at 12:19 am
you can get information related with table usage from this : sys.dm_db_index_usage_stats
July 27, 2009 at 11:55 pm
I think following will be helpful for u :
SELECT
part1.a,part1.b,part2.d
FROM
(
SELECT tbl1.a, tbl2.b
FROM tbl1
INNER JOIN tbl2
ON tbl1.c = tbl2.c
) part1
INNER JOIN
(
SELECT tbl1.a, tbl3.d
FROM tbl3
INNER JOIN tbl1
ON tbl1.c = tbl3.c
) part2
ON...
July 27, 2009 at 2:41 am
Thanks for reply....
I am converting a package from DTS to SSIS and there
in SSIS Package I need to have a equivalent functionality for the dynamic property task that...
November 26, 2007 at 6:44 am
First Question is for SSIS
Second question is for DTS
November 22, 2007 at 5:27 am
Thanks for ur reply... As U mentioned use Nvarchar(MAx), But when I Add a variable, there is option for string and Char , then I Press 'F4' and go to...
November 20, 2007 at 8:47 am
Thanks... I applied the same thing suggested by u and it is working.
November 7, 2007 at 6:44 am
Thanks, for your reply. But here I would like to know that how can I assign the result of an Execute SQL Task to a variable.
...
November 5, 2007 at 9:15 pm
Viewing 14 posts - 1 through 14 (of 14 total)