Viewing 15 posts - 1,426 through 1,440 (of 1,492 total)
This is a text split problem. There are several good splitting fuctions talked about on this site.
April 2, 2014 at 1:25 pm
otto840513 (3/28/2014)
March 28, 2014 at 9:08 am
You can combine the two thus
SELECT CAST(CurrentDate AS DATETIME) + CAST(Time AS DATETIME) FROM Data
This will be a DATETIME value. So you might use a CTE to combine the...
March 26, 2014 at 10:04 am
Thank you, mcx5000.
The EXECPT might just be what I was looking for. I have not used it very often so do not think of it.
Thanks again,
March 26, 2014 at 7:52 am
sharonsql2013 (3/25/2014)
I need to see records for last two hours ...
How should I do...
March 26, 2014 at 5:59 am
There are several third party packages that can help with this.
March 25, 2014 at 7:03 am
free_mascot (3/25/2014)
It will not take fraction i.e. 1.5 hrs, instead you need to select 90 minutes.HTH
That is the problem. He puts in 90 and it changes to 60. ...
March 25, 2014 at 6:51 am
ms-techie (3/25/2014)
Later I want to use this variable in my code in the WHERE Clause
Declare @ProjectNo...
March 25, 2014 at 6:43 am
If there are several columns that need changed you may be better off creating a new table and inserting the data there.
As Grant said you need to check...
March 25, 2014 at 6:41 am
If you have T-SQL code you want formated, show use the code.
March 21, 2014 at 7:39 am
SSMS does not format queries or their results. You need to format the query manually.
You should use something like .NET to get and format the results.
March 21, 2014 at 7:31 am
On BOL look at "Cast and Convert (Transact-SQL)" see "money and smallmoney Styles"
March 20, 2014 at 7:04 am
Use dynamic SQL to set a character string with the CASE
March 20, 2014 at 6:59 am
See if this helps:
SELECT
DB_NAME() AS DatabaseName, T.[name] AS Table_Name, AC.[name] AS Column_Name,
AC.column_id AS Ordinal_Position, TY.[name] AS Data_type,
...
March 19, 2014 at 10:34 am
First thing in the morning here so not a lot of time.
Remember that the ISNULL causes the query to be non-surgable. (index not used)
March 19, 2014 at 4:35 am
Viewing 15 posts - 1,426 through 1,440 (of 1,492 total)