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 ArticleAnswer by Squirrel 1
re-post at http://ask.sqlteam.com/questions/3069/table-create-failing-code please stick to same post
View ArticleAnswer by Squirrel 1
insert into another_table ( column_name ) select right(SortCode, 1) from TempTable
View ArticleAnswer by Squirrel 1
if the mmddyy date is always at the last 6 characters select convert(datetime, right(yourcolumn, 6), 103)
View ArticleAnswer 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 ArticleAnswer by Squirrel 1
see this if you are using SQL 2005/2008 http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254
View ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer by Squirrel 1
re-post at http://ask.sqlteam.com/questions/3069/table-create-failing-codeplease stick to same post
View ArticleAnswer by Squirrel 1
insert into another_table ( column_name ) select right(SortCode, 1) from TempTable
View Article
More Pages to Explore .....