Viewing 15 posts - 226 through 240 (of 455 total)
If you want to search for a specific string
http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=1131
October 3, 2006 at 7:36 am
This should for a selected year
SELECT DATENAME(month, Date_Occur) AS [Month],
COUNT(*) AS [NumberOfTransactions]
FROM
tblTransaction
WHERE
Date_Occur >= CONVERT(DATETIME, '2006-01-01')
AND
Date_Occur < CONVERT(DATETIME, '2007-01-01')
GROUP BY
DATENAME(month, Date_Occur),
DATEPART(month,Date_Occur)
ORDER BY
DATEPART(month,Date_Occur)
Thx
September 29, 2006 at 11:52 am
If the length of the text is less than 8000 characters you can store them in VARCHAR datatype columns. If it is more than 8000 characters you need to store...
September 29, 2006 at 11:16 am
I failed to understand your question, are u trying to understand how the data is inserted or do you want a solution for inserting the records as explained by you.
September 29, 2006 at 10:07 am
I assume that could be for end user presentation, it can be done on the client side also.
September 29, 2006 at 10:01 am
SELECT CONVERT(VARCHAR(8),GETDATE() ,112) replace GETDATE() with your datefield
September 29, 2006 at 9:53 am
Where do you want to preserve them? Do you mean in SQL tables or are you referring to any other format?
September 29, 2006 at 9:47 am
But he is running some scheduled process on the same tables, in which case he may have use the renamed tables for his processing aswell.
September 29, 2006 at 9:43 am
Yes, this is appropriate solution for your requirement, to set your report render format to EXCEL and render the report in excel and that way the user can manipulate as...
September 29, 2006 at 12:35 am
Try this, I believe there is some problem with the version of your databases.
declare @login sysname
declare @sid varbinary(85)
declare @dbname sysname
declare @db varchar(3000)
declare @cmd varchar(3000)
create table #tmplogin(msg varchar(3000)null, lname sysname)
select...
September 28, 2006 at 12:41 pm
I am not sure if I got your question correct, static tables are the master tables that are populated with some canned data at the time of creation of the...
September 28, 2006 at 11:33 am
Write a stored procedure to insert data into a temporary table and you can manipulate on the data inserted to temp table to retrieve the output in your desired format.
September 28, 2006 at 11:11 am
Check if this link helps
http://www.sqlservercentral.com/columnists/mpearson/recoveryplanningforsqlreportingservices.asp
September 28, 2006 at 11:03 am
Ok, if you are having both the databases on the same server, which as per your post I believe is the case.
Just use databasename..tablename in your query to access the...
September 28, 2006 at 9:57 am
Viewing 15 posts - 226 through 240 (of 455 total)