Add two timestamp columns
I have 2 timestamp columns in a tableColumnname typeLoginTime TimestampLogoutTime TimeStampNeed to find total hours... how to add 2 timestamp columns.. help me...
View Articlehow to find out sql server administrator account in sql server 2008 R2
how to find out sql server administrator account in sql server 2008 R2adil
View ArticleRunning .exe file on remote computer using SQL server Agent JOb
I am trying to run exec file on a remote server by using sql server Agent job, what is the best way to do thisk
View ArticleGathering “Authors” In my stored procedure, how?
My stored procedure for monthly sales is now close to finished. The only thing left is that it prints out the "Authors" on several lines. So if a ID has several authors, it will print several lines...
View Articleproblem "The OLE DB provider for linked server reported an error. The...
hi i'd like to ask question about linked server. my linked server used to work but now when i try to select from linked server i was told "The OLE DB provider for linked server reported an error. The...
View Articlepatches info
Presently our production box has SQL Server 2008, we want to upgrade it 2008r2.My question is can we download and install patches 2008r2 apply on 2008 to make it 2008r2 is that possible.Or we need to...
View ArticleTrying to move NDF file to the PRIMARY filegroup
We have a DB with an MDF file and an NDF file on different filegroups: MDF is on PRIMARY and NDF is on XYZ filegroup.Is there a way to move the NDF file from the XYZ filegroup to the PRIMARY filegroup...
View ArticleDataBase suddenly case sensitive, collation at every level I can see is CI
SQL Server 2008 R2 on Server 2008 R2 "iron".Within the last 2 weeks a database that is set (collation...) as CI, on a server that is CI, looking at a view that is CI, is suddenly CS in it's behavior....
View ArticleVarchar(Max) field cutting off data after 8000 characters SQL Server 2008
Hi,We have a scenario on which we are preparing the SQL query dynamically by string concatenat and then at the end EXECUTING the query using EXECUTE statement but observed that the VARCHAR(MAX) data...
View ArticleError while restoring back up
Hi Team ,Facing below error, while restoring in SQL.please helpThe media family on device 'C:\Test\fwsmall-12-3_supraekeybackup_virtusa.bak' was created using Microsoft Tape Format version 1.240. SQL...
View ArticleSend SQL query output to specially formatted output file
I need to pull data from my databse and have it output to a text file in a specific format. I have the follow to pull data correctly buts its a CSV file with headers I dont want headers and i need...
View ArticleQuerying from the result of another query.
The following query gives me a list of FaxIDs whose file path column does not start with C:\ and that haven't already been identified according to the identified table.SELECT [FaxID] FROM [FaxQueue]...
View ArticleSubtracting and Inserting new field
Hi,I have a table:Metric MetricDescription Season Measure01 Cancellation Ho11 303 GF...
View ArticleHow can I get output from multiple tables into one output set?
I am running multiple queries one at a time an massaging the data into Excel to create a spreadsheet. I want to be able to execute one query to do all. When I run these together it seems to multiply...
View ArticleHow to add Total time from datetime
Hi i have two columns. Columnname TypeLogin DateTimeLogout DateTimeIt ill enter everyday user's access of system timing..How to find total hours accessed by the user..
View ArticleHuge memory utiliszation in our production server
Hi all,Please I would like to share with you our serious problem concerning the performance of sql production server that hosting sales Database (about 1.5 GO).DetailsOLAP systemMicrosoft SQL Server...
View ArticleSQL Server Connection issues
Hi I've a windows user was able to access the SQL servers before, all of sudden yesterday we had issues with connecting for 2 servers and the errors says Login Failed. The login is from untrusted...
View ArticleCollapse Rows into JSON Value
I have the following code to Collapse rows into JSON and XML PATH WITH STUFF Operation is very slow.Looked into alternatives and couldn't find anything suits my needs.Is there better way to collapse...
View ArticleBackup SQL Agent Jobs - whats the difference between "create to" and "drop...
Hi,This should be straightforward, but being new to SQL Server 2008, can someone advise the difference between "create to" and "drop to" using "script job as"?ThanksIT Support/Everything
View ArticleAttaching MDF using sa account
Hi I am trying to attach the adventure works database with the 'sa' account but can not do so. I have read the help but it works for the Windows Authentication mode only. What I am missing ?FM
View Article