Viewing 15 posts - 61 through 75 (of 78 total)
You can simply do it using your flag variable
Example
If @strFlag = 'Not Join'
BEGIN
Select * from FirstTable
END
If @strFlag = Join'
BEGIN
Select *...
March 31, 2010 at 5:12 am
Or Involve a table column in where clause you can use below mention query.
DECLARE
@ObjectName varchar(11),
@ColumnName varchar(20),
@message varchar(80)
DECLARE column_cursor CURSOR FOR
SELECT OBJECT_NAME(C.OBJECT_ID), C.NAME
FROM SYS.COLUMNS C, SYS.TABLES T
WHERE...
March 31, 2010 at 5:08 am
What query or process you used for exporting data into sql server??
March 31, 2010 at 3:57 am
In Store Procedure defination you always use use SP parameters with in where clause. So at least with this query you can easily identify what parameter used for what purpose.
March 31, 2010 at 3:52 am
For finding the all list of parameter used in SP you can use below mention query.
SELECT sp.name, parm.name AS Parameter, typ.name AS [Type]
FROM sys.procedures sp
JOIN sys.parameters parm
ON sp.object_id =...
March 31, 2010 at 3:42 am
Kindly write down your code here with same script.
So it will provide you fast help
March 27, 2010 at 8:27 am
what kind of row id du you need.
If you need row id which is stored in your table then you can use table's identity value for the same
March 27, 2010 at 8:25 am
😉
Kindly used sql code tag for writing any sql query.
And also post same data for batter view.
March 27, 2010 at 8:22 am
Dear,
Kindly provide the test script for batter analyze.
Regards
Vijay
March 25, 2010 at 1:54 am
Yes Paul, But for Smaller String We can use.
XML also have validation as it don't support spacial character like "&"
/*
Name:
SplitString
Parameter:
1) Seperator
2) String
Details:
This function is used to split string with specified...
March 17, 2010 at 7:08 am
Yes You are right. Thankx for another solution
March 17, 2010 at 6:39 am
I think Pivot is used for show aggregated data
in Your case test below mention code
DECLARE @T TABLE
(ID INT IDENTITY, NAME NVARCHAR(200));
INSERT INTO @T (NAME) VALUES ('A1, A2, A3');
INSERT INTO...
March 17, 2010 at 5:40 am
Unpivot is the best way to achieve this task.
March 16, 2010 at 1:40 am
Viewing 15 posts - 61 through 75 (of 78 total)