Viewing 15 posts - 7,906 through 7,920 (of 26,490 total)
robert.wiglesworth (4/18/2013)
I have a column called EventText with a string such as 'Receiving batch [688_31142.TRN].' (without the ' marks)
I need to get it to be '688-31142'
I can accomplish that with...
April 18, 2013 at 12:25 pm
prathibha_aviator (4/18/2013)
Seraj Alam-256815 (4/18/2013)
Yes, only else part will execute as the condition is not true. What is confusion? do you think 0=1 is correct?
My requirement is to
-Get the value stored...
April 18, 2013 at 12:20 pm
mike.hamilton721 (4/18/2013)
insert into #DBID (LogicalName,BindingID)
EXEC ('DBCC fileheader('+@dbid+')')
But that gives me "column name or number of supplied values does not...
April 18, 2013 at 10:08 am
patrickmcginnis59 10839 (4/18/2013)
dbursey (4/18/2013)
April 18, 2013 at 7:25 am
The problem I have seen in most of the posts asking for interview questions is a lack of effort on the part of the poster. Most of the time...
April 18, 2013 at 7:17 am
Ananth@Sql (4/18/2013)
Your Explanation And presentation Makes Me Clear Of This Question.
And for a clarification tell Me The datatype...
April 18, 2013 at 7:14 am
Please read the first article I reference below in my signature block regarding asking for help. It will walk you through the things you need to post and how...
April 18, 2013 at 7:08 am
batgirl (4/18/2013)
sugiarttampubolon (4/18/2013)
the table
EmployeeNo TimeIn TimeOut BreakHours WorkingHours
001 06:20 ...
April 18, 2013 at 6:49 am
Can you reproduce the error by setting up tables that look similar in structure and data type and recreate the issue?
April 18, 2013 at 6:26 am
I have a question, have you tried recreating the problem using a set of tables that resemble the tables used in the query (data types and column order) with a...
April 17, 2013 at 9:29 pm
I can see the problem, you have an extra single before the cast and before the final + sign.
Look at what I had posted earlier.
April 17, 2013 at 5:45 pm
Join it to the INFORMATION_SCHEMA.TABLES view by TABLE_NAME and filter TABLE_TYPE = 'BASE TABLE'.
Or add the following in the WHERE CLAUSE
exists(select 1 from INFORMATION_SCHEMA.TABLES t WHERE t.TABLE_NAME = c.TABLE_NAME and...
April 17, 2013 at 4:58 pm
mike.hamilton721 (4/17/2013)
April 17, 2013 at 4:38 pm
mike.hamilton721 (4/17/2013)
DBCC traceon (3604);
drop table #DBID
Create table #DBID (
Name nvarCHAR(256)NULL,
LogicalName nvarCHAR(256)NULL,
BindingID nvarCHAR(256)NULL)
declare @db varchar(256),
@dbid int,
@hidb int
select @hidb = MAX(dbid),
@dbid =...
April 17, 2013 at 4:02 pm
Could just be me, but ith the title Row Constructor I knew immediately that we were talking about SQL Server 2008 and newer as this was a new feature in...
April 17, 2013 at 3:57 pm
Viewing 15 posts - 7,906 through 7,920 (of 26,490 total)