Viewing 15 posts - 31 through 45 (of 330 total)
Is this you need
create table #Temp (id int,name varchar(30), surname varchar(30) ,age tinyint)
insert into #Temp values (1, 'John', 'Smith', 20)
insert into #Temp values (2, 'Pen', 'Drive', 14)
Select COL_NAME(OBJECT_ID('#Temp'), 1)+':'+convert(varchar,Id)+';'+COL_NAME(OBJECT_ID('#Temp'),...
April 18, 2011 at 9:52 am
Ninja's_RGR'us (4/18/2011)
April 18, 2011 at 8:13 am
It is a very good practice to have column name even though there is a single column ,I just said because TheSQLGuru has stated that it will not work.In order...
April 18, 2011 at 8:03 am
asterman_3 (4/17/2011)
I would like to ask whether it is possible in SQL 2008, when creating database audit specifications, to specify Column Level. Whenever a column is "touched" (ex. updated), to...
April 18, 2011 at 7:45 am
TheSQLGuru (4/18/2011)
April 18, 2011 at 7:34 am
Have a look on the following links to have some idea
Monitoring Job Activity
http://msdn.microsoft.com/en-us/library/ms188272.aspx
Job Activity Monitor
April 18, 2011 at 7:10 am
Hi
1.create table #Temp (t int,J int)
2.create clustered index T_temp on #Temp(t)
3.Select * from #Temp where t=0 and j=1
4.create nonclustered index T_tempNon on #Temp(j)
5.Select * from #Temp
6.Drop table #Temp
1.Table created
2.Clustered index...
April 18, 2011 at 5:13 am
hbk_sql (4/15/2011)
select * from userI could see encrypted data
Im..In that which column where encrypted (all the columns or only few).
How was the encrypted data any sample you can have over...
April 15, 2011 at 11:34 am
How did you find that columns where Encrypted ?
April 15, 2011 at 8:49 am
Change data capture provides information about DML changes on a table and a database. By using change data capture, you eliminate expensive techniques such as user triggers, timestamp columns, and...
April 15, 2011 at 7:15 am
Try this
DECLARE @SQLString nvarchar(500);
DECLARE @ParmDefinition nvarchar(500);
DECLARE @TDATA varchar(30);
declare @QName varchar(50)='TBL_Q6310'
SET @SQLString = N'SELECT @TDATAOUT = Count(*) FROM '+@QName
SET @ParmDefinition = N' @TDATAOUT varchar(30) OUTPUT';
print @SQLString
print @ParmDefinition
EXECUTE sp_executesql @SQLString, @ParmDefinition, ...
April 15, 2011 at 6:38 am
kr.nithin (4/14/2011)
April 14, 2011 at 8:10 am
Try with
Exec sp_MSforeachdb
Not sure about it have a try.
April 14, 2011 at 7:58 am
normanshongo2003 (4/14/2011)
This code gets me 2 decimal places ..select SUM(annual_salary) as 'Total'
from dbo.Employees
where Department_No='80'
The datatype which your table might be having as prec 8,2 so it is returning as 0.00...
April 14, 2011 at 5:35 am
Viewing 15 posts - 31 through 45 (of 330 total)