Viewing 15 posts - 91 through 105 (of 443 total)
Or some dynamic SQL
DECLARE @sql VARCHAR(MAX)
SELECT @sql = ISNULL(@sql,'') + 'SELECT ''' + name + ''',COUNT(*) FROM [' + SCHEMA_NAME(schema_id) + '].[' + name +'];' +...
August 26, 2011 at 1:50 am
amitchaudhury (8/25/2011)
I want to go though all the tables that being with CMS_ and look for data...
August 26, 2011 at 1:44 am
amitchaudhury (8/23/2011)
how can use to find records after a certain date/time if knew the column name...
Do you mean records inserted/updated after a specific date/time?
If so, unless you maintain a complete...
August 25, 2011 at 3:24 am
August 19, 2011 at 4:57 am
Frances L (8/2/2011)
yes.
Is the DOB column Date of birth?
August 2, 2011 at 9:51 am
or maybe this (I don't know what your tables look like!!!)
SELECT @actualPassword =convert(VARCHAR(10),DOB,101)
FROM [Annual_Edu_2006].[dbo].[HREMP_Adp]
Where fullName = @username
August 2, 2011 at 9:50 am
try this
SELECT @actualPassword =convert(VARCHAR(10),DOB,101)
FROM [Annual_Edu_2006].[dbo].[HREMP_Adp]
Where [LName]+', '+[FName] = @username
Are you really going to use this to authenticate users in a production system?
August 2, 2011 at 9:48 am
Eugene Elutin (8/2/2011)
nigel. (8/2/2011)
or
SELECT LEN(REVERSE('1 '))
😛I wanted to put this first, but it has limitation: will not work for string with trailing spaces :hehe:
Ah! Good point
August 2, 2011 at 8:33 am
SQL Server is a big product, with many features. You will need to be a bit more specific with your questions.
Try starting here http://msdn.microsoft.com/en-us/library/ms130214.aspx
July 27, 2011 at 3:18 am
Geoff,
My bad. I hadn't noticed the use of system tables in your query (didn't scroll right far enough). 😀
July 6, 2011 at 8:37 am
I've got to ask, where are the values for the column and table name coming from?
If they are entered by a user then you have opened yourself up to an...
July 6, 2011 at 5:59 am
Even simpler with Auto-Implemented Properties in C# 3.0 and later you don't need the private variable.
June 8, 2011 at 3:58 am
Viewing 15 posts - 91 through 105 (of 443 total)