Viewing 15 posts - 16 through 30 (of 106 total)
We just want to know the how many column and table used in sql select stament
September 21, 2011 at 5:00 am
You have create two function One for
Encrypt(F_EncryptString) the String and another decrypt (F_decryptString) the string.In both function you have to use same passphrase string.
August 2, 2011 at 7:50 am
In sql Sever 2005 onword U can use passpharse method to encrypt/decrypt the string if you do'nt want to maintian the master key
DECLARE @passPhrase NVARCHAR(50),
...
August 2, 2011 at 6:14 am
Below query will work for yur case ,
SELECT * ,dense_rank() over ( order by letterId desc ) FROM #History
order by HistoryID
July 19, 2011 at 8:14 am
Try This Sql Statment,
DECLARE @String VARCHAR(1000)
SET @String='4690573010230001982347982354378346';
WITH cte
AS (SELECT Cast(Stuff(@String, 4, 0, '.')AS VARCHAR(1000)) AS nbr,
...
July 19, 2011 at 2:59 am
Check Below SQL and let me know if it's work for you
use tempdb;
go
create table stu( id int , name varchar(10))
insert into stu(id,name)
select 1 id, 'x' name union all
select 2,...
July 18, 2011 at 8:47 am
Check Below SQL and let me know if it's work for you
use tempdb;
go
create table stu( id int , name varchar(10))
insert into stu(id,name)
select 1 id, 'x' name union all
select 2,...
July 18, 2011 at 8:46 am
Call store procedure and in store procedure define parameter as OUTPUT.
June 10, 2011 at 2:48 am
Use Case statment to update the wrong Entered data
May 20, 2011 at 12:39 am
If you don't know how many subject u have then use dynamic SQL and get the result.
May 19, 2011 at 7:15 am
I Thing you are looking for
SELECT CASE
WHEN CASE
...
May 19, 2011 at 6:34 am
Use just simple transaction
begin try
begin tran
SELECT * into table1 (col, col2...)
FROM table2
DELETE FROM table2 --Need to rollback table2 data if script gets failed...
May 17, 2011 at 12:56 am
Try This and let me know if any issue
SELECT MONTH
FROM (SELECT DISTINCT( Convert(VARCHAR(6), DATE, 112) ) AS MONTH,
...
May 17, 2011 at 12:37 am
Viewing 15 posts - 16 through 30 (of 106 total)