Quantcast
Channel: ฟอรัม Getting started with SQL Server
Browsing all 8428 articles
Browse latest View live

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 Article


how 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 Article


Running .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 Article

Gathering “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 Article

problem "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 Article


patches 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 Article

Trying 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 Article

DataBase 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 Article


Varchar(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 Article


Error 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 Article

Send 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 Article

Querying 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 Article

Subtracting and Inserting new field

Hi,I have a table:Metric          MetricDescription                       Season    Measure01                       Cancellation                      Ho11         303                           GF...

View Article


How 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 Article

How 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 Article


Huge 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 Article

SQL 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 Article


Collapse 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 Article

Backup 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 Article

Attaching 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
Browsing all 8428 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>