Viewing 15 posts - 31 through 45 (of 71 total)
I think the below code will solve your problem,
create table #a (nam varchar(10))
insert into #a values('aa')
insert into #a values('ba')
insert into #a values('ca')
with cte as
(
select 1 as id
)
update #a set...
July 27, 2008 at 2:12 am
It will surely work, May be the problem is with the case sensitiveness of your server.. Alter the statement with same column name and try it out,
create table #a (id...
July 27, 2008 at 2:07 am
Just try this query to achieve your task,
select * from INFORMATION_SCHEMA.COLUMNS
where DATA_TYPE not in ('varchar') and table_name='venkat'
Regards,
Venkatesan Prabu. J
July 27, 2008 at 1:56 am
It wont affect the performance of your query.
July 27, 2008 at 1:37 am
Hope this will resolve your problem,
create table aaaa(id int,nam varchar(10),city varchar(10))
insert into aaaa values(1,'aa','sydney')
insert into aaaa values(2,'bb','delhi')
insert into aaaa values(3,'cc','chennai')
select * from aaaa
create table #temp1(id int, nam varchar(10))
insert into #temp1...
July 27, 2008 at 1:23 am
Yes it will surely work
create table aaaa(id int)
insert into aaaa values(1)
insert into aaaa values(2)
insert into aaaa values(3)
select * from aaaa
create table venkat(id int)
with cte as
(
select * from aaaa
)
insert into venkat(id)
select...
July 27, 2008 at 1:16 am
I have faced the same problem in my SQL server.
Its because of the older version .. please install the latest patches and try it out.
BEGIN TRY
...
July 27, 2008 at 1:12 am
Full Text index can be used to create an index for the data in a column which may be any type (varchar, nvarchar,xml)
where as XML indexes are used to create...
July 27, 2008 at 1:02 am
Hope this code will help you,
create table aaaaa(id int)
insert into aaaaa values (1)
insert into aaaaa values (2)
insert into aaaaa values (3)
insert into aaaaa values (4)
insert into aaaaa values (5)
select *...
July 27, 2008 at 1:00 am
Hope this will help you achieve your task,
create table aaaaa(id int)
insert into aaaaa values (1)
insert into aaaaa values (2)
insert into aaaaa values (3)
insert into aaaaa values (4)
insert into aaaaa values...
July 27, 2008 at 12:50 am
The below statement will free up your cache and you can check your performance after executing the below statement.
DBCC FREEPROCCACHE [ WITH NO_INFOMSGS ]
July 27, 2008 at 12:47 am
DDL Trigger -> Its a new concept introduced in SQL Server 2005.
Its used to control and monitor the DDL statements executed in our database.
Consider the below example,
I have created a...
July 27, 2008 at 12:40 am
Just try this query,
DECLARE @sourceTable nvarchar(50)
DECLARE @sourceFieldId nvarchar(50)
DECLARE @sourceDisplayField nvarchar(50)
DECLARE @OutString nvarchar(500)
DECLARE @strSql nvarchar(500)
DECLARE @params nvarchar(20)
DECLARE @DocDataId varchar(20)
DECLARE @Concat varchar(200)
SET @strSql =
...
July 27, 2008 at 12:29 am
Viewing 15 posts - 31 through 45 (of 71 total)