Quantcast
Channel: Getting started with SQL Server forum
Browsing all 9243 articles
Browse latest View live

Regarding OUTER JOIN

I'm reading a SQL Server book.I don't understand LEFT OUTER JOIN and RIGHT OUTER JOIN.According to this book, LEFT OUTER JOIN is illustrated like following.A LEFT OUTER JOIN will preserve all of the...

View Article


Image may be NSFW.
Clik here to view.

how to create sql server user login in visual studio 2013 , when i want to...

View Article


Image may be NSFW.
Clik here to view.

Local Sql Database , where i put '// ' in this source , please help :( Data...

View Article

insert into oracle_table (column1) select column1 from ms_sql_table

Hi all,  how do I export data from ms sql table into oracle table ?  begin insert into oracle_table (column1) select column1 from ms_sql_table; commit; end;

View Article

Image may be NSFW.
Clik here to view.

How to generate date month-wise from start date untill end date ?

How to generate the second table from the first table  ?

View Article


Can column default value be based in another column?

I have table Employee with two columns: [EmpCode] and [Dept].Is it possible that [Dept]'s default value be some CASE statement that can be two possible values? If [EmpCode] begins with 'H' then [Dept]...

View Article

Create Procedure only if it does not exist.

Maybe I am missing something or making too much of it. But I cannot figure out how to create a procedure only if it does not exist.We restore db from a backup file. the backup file has the most current...

View Article

How to sort specific column when using GROUPING SETS in SQL Server?

If I remember correctly, in SQL Server, it is not recommended to use "ORDER BY" when there's already a GROUP BY GROUPING SETS.I have two columns: [UPC#] & [Description] both are varchar.My grouping...

View Article


Is it advisable or practical to run SQL Agent with Account from another domain?

A SQL Server in domain A needs to mount databases downloaded on a weekly basis to a second SQL Server, in domain B.Right now, the two domains, which were deliberately separated for security, have no...

View Article


Dropped/recreated SQL jobs and now SQL Agent can't run b/c old job_id is...

I've seen a common issue in several of our production environments where after we upgrade our software the SQL Agent can't run some jobs that were recreated as part of the process because they're...

View Article

SQL server connect with VB6's DataEnvironment

I want to connect VB6's DBEnvironment with SQL ServerDataEnvironment.DEConnection.ConnectionString = ?How could I do this?

View Article

Set out of range value to a time datatype in sql server 2008

Hi,I have a variable set to time datatype in SQL server 2008. I need to set a value more than 24 hrs to that. Is there any way? I get an error like Conversion failed when converting date and/or time...

View Article

ODBC connection failed for the first time with firewall blocked

Hello,I am trying to setup a ODBC connection with SQL Server driver where I am getting a connection error while testing the connection.Then I allowed all the inbound connections on the firewall...

View Article


Image may be NSFW.
Clik here to view.

Can a view be created from the below query ?

Can a view can be built from the below requirement :For eg,I have a table having price from period_key 150 to period_key 156 My max(period_key) is 165I want a view that will show price from period_key...

View Article

Make a good database Design ?

What are the steps/consideration need to make a database ?

View Article


SQL Server volume licensing

If you have an enterprise agreement with Microsoft, specfici to SQL Server, do you just buy a volume per version of SQL Server, or does buying a volume of SQL Server cover any version you have...

View Article

Knowledge on Transaction log ?

Hi All, I have couple of questions? Question-1: I need to know will running import/export wizard increase the T-log growth? OR will running simple select statement increase the T-log. To my little...

View Article


DateTime Conversion in SQL Server

Hi ,I have dates in the format "3/22/2010 4:28:23 PM", which I want to convert to a format like "3/22/2010 16:28".Could some one help how to achieve this?Thanks,M

View Article

SQL Update Question

A                          B Name                   Name ---------                 ------------ RingSouth            Ring South or Ring.South or Ring_South (One of them wuld be in the B Table field...

View Article

Image may be NSFW.
Clik here to view.

How to sort numbers that are in varchar type under GROUP BY GROUPING SETS in...

I have a column called UPC (varchar type) that only contain numbers. I also have a GROUP BY GROUPING SETS on UPC.Currently, it's sorted as varchar, which result the numbers not sorted from smallest to...

View Article
Browsing all 9243 articles
Browse latest View live


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