Quantcast
Channel: Answers by "Squirrel 1"
Browsing all 30 articles
Browse latest View live

Answer by Squirrel 1

Please do not post duplicate thread. You can edit this post rather than creating a new one. re-post at http://ask.sqlteam.com/questions/3069/table-create-failing-code

View Article



Answer by Squirrel 1

re-post at http://ask.sqlteam.com/questions/3069/table-create-failing-code please stick to same post

View Article

Answer by Squirrel 1

you will need to use Dynamic SQL to do it

View Article

Answer by Squirrel 1

No you can't. A update statement can only update a single table

View Article

Answer by Squirrel 1

insert into another_table ( column_name ) select right(SortCode, 1) from TempTable

View Article


Answer by Squirrel 1

if the mmddyy date is always at the last 6 characters select convert(datetime, right(yourcolumn, 6), 103)

View Article

Answer by Squirrel 1

Table Trigger should be either enable or disable. And not enable / disable whenever you are running a stored procedure Why do you need to that ?

View Article

Answer by Squirrel 1

see this if you are using SQL 2005/2008 http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254

View Article


Answer by Squirrel 1

http://lmgtfy.com/?q=What+is+magic+table+in+sql+%3F

View Article


Answer by Squirrel 1

just google and you will see the answer.

View Article

Answer by Squirrel 1

infinite date ? i suppose you can use 9999-12-31. When that date reach and it didn't expired, let me know ;) Alternatively you can use NULL value. Anything when compare with NULL is false. Depending on...

View Article

Answer by Squirrel 1

can you explain more in details ? Preferably with some example

View Article

Answer by Squirrel 1

select * from ( select *, row_no = row_number() over (partition by FlatNumber order by ContractToDate desc) from tblContract ) c where c.row_no = 1

View Article


Answer by Squirrel 1

basically you use JOIN clause to join the tables. It does not matter the number of tables involved. Depending on the requirement, you can use either INNER JOIN or OUTER JOIN or maybe FULL OUTER JOIN....

View Article

Answer by Squirrel 1

use sp_executesql declare @V_SQL nvarchar(1000), @records int SET @V_SQL = 'SELECT @records = count(*) FROM MyTable WHERE page1id IS NULL' exec sp_executesql @V_SQL, N'@records int OUTPUT', @records...

View Article


Answer by Squirrel 1

Please do not post duplicate thread. You can edit this post rather than creating a new one.re-post at http://ask.sqlteam.com/questions/3069/table-create-failing-code

View Article

Answer by Squirrel 1

re-post at http://ask.sqlteam.com/questions/3069/table-create-failing-codeplease stick to same post

View Article


Answer by Squirrel 1

you will need to use Dynamic SQL to do it

View Article

Answer by Squirrel 1

No you can't. A update statement can only update a single table

View Article

Answer by Squirrel 1

insert into another_table ( column_name ) select right(SortCode, 1) from TempTable

View Article
Browsing all 30 articles
Browse latest View live




Latest Images