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

varchar(max) vs varchar(255)

 Hi guys, I'm new to MS-SQL 2005, I will ask you a bunch of questions and I hope I will not be too boring hehe ! I learned that in MS-SQL 2005, you can now use varchar(max), my question is why not...

View Article


which index will it take and why ?

Hi, I have a table Employee and i have an index on EmpID on this table. Now i have created a view EmpView on this table. I have created an index on this view for the same column EmpID.Now my question...

View Article


BCP Utility Comma

I have the following problem. I need to create a .csv file with SQL (with the bcp utility). I can create this .csv file and the following data is inserted: 1","ad","dsa","333","","2","0","","","",""" I...

View Article

How to update Junction Table

I have trigger setup on the sql server end, which inserts data into the tables products and prices, however my junction table 'Product_Prices', is not automatically updating with the records, when the...

View Article

AUto-renaming mdf & ldf filenames when restoring a database with SQL...

Hi!I am using SQL Management Studio 2014 and I am experiencing some problems when restoring a database backup.I have a SQL Server 2008R2 & SQL Server 2012 instances.On the 2012 instance, when I...

View Article


New install of older version on new machine questions (2008 R2 Express)

Hi,I want to setup SQL Server 2008 R2 Express to an i5 machine running window 8.1. This should include ssis, ssrs, ssas, and the management studio. The instructions say to:Step 1: Install Microsoft...

View Article

RIght Outer Join not working as expected

I have selected two record groups (217,244) and want to perform a query that will list all the records, whether matching or not. What am I doing wrong? I cannot get recid=4 to show in the result...

View Article

Is there a way to get long running SQL Agent jobs information using powershell?

Hi All,Is there a way to get long running SQL Agent jobs information using powershell for multiple SQL servers in the environment?Thanks in Advance.--Hunt

View Article


Unable to login to sa account

Hi, I inherited database admin duties from a previous employee who is no longer with us. The program currently used is SQL Server Manager and it has a database that I need to back up. Problem is, he...

View Article


Calculating fractions of hours from time date range

Hello friends, I'm using sql server 2008 r2 and I have a table called attendance with the following fields attendance_no    int attendance_date    date attendance_timein    time(7) attendance_timeout...

View Article

Installation of SQL Server device client accesses

Hello,Please help me out for the below query.Actually I don't have an idea of User & Device CAL Licenses. I joined newly in a company as SQL DBA but I don't know about the licensing part. So, In my...

View Article

Transactional Server Replication

Hi,I created Publisher on instance "A" and Subscriber on instance "A/alternate".Strange thing is that replication copy all tables but without data... Here is a error that occurs, can anybody suggest...

View Article

column store index and table designer

Is it possible to create a column store index using table designer , not code?thankssukai

View Article


Adding numbers from text onto a date

Hi lifesavers!I am writing a report where my people have used a text field to state the number of days for an audit to last.I am trying to develop a schedule that shows AUDIT START DATE + number of...

View Article

Chart Vertical Access keeps growing

hi everyone!I am using a range chart and I keep expanding the chart to give more room to the data... but instead the vertical labels just keep getting more room.How do I stop the vertical axis labels...

View Article


Wildcard certificate in mssql 2008R2

Hello, I have installed wildcard certificate in Certificates(Local Computer)\Personal in  sql server. We are using Windows 2008R2 server and 2008 R2 SQL server. Certificate is issued by StartCom. With...

View Article

Importing schema+ data using a text file containing sql commands

I have the 2012 SQL SVR Mgmt Studio installed. I received a file--snippet below... from an export of our current DB provider, Advantage. I know I have to edit a lot of commands, but my question is...

View Article


Listing Size of all user Databases in SQL2005

Can anyone please tell me of a way of generating a list of all user databases and their size with one command or view?Thanks,

View Article

xp_logevent permission

Hi,I am getting below error The SELECT permission was denied on the object 'ServiceAgent', database 'HOFHUB', schema 'dbo'.  The EXECUTE permission was denied on the object 'xp_logevent', database...

View Article

Cannot Log in locally to SQL Server 2008 R2 SP2, Can log in remotly.

Hello, Domain Admins has been added to the sysadmin group.  My domain account is a member of Domain Admins.  I can log into the database engine via Managment Studio from a remote computer however i...

View Article
Browsing all 9243 articles
Browse latest View live


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