Quantcast
Channel: Microsoft SQL Server
Viewing all 4871 articles
Browse latest View live

Directing Database traffic to specific NIC adapter

$
0
0

Folks,

I have a physical server running 1 instance of SQL Server 2008 R2 also on Windows 2008 R2 OS.

Server has 4 active physical NIC adapters. Configured with 4 static  IPv4 addresses in a DNS round robin (not NIC teaming) 192.168.1.10,  192.168.1.11 , 192.168.1.12, 192.168.1.13

Currently all workstations, running the front end app, point to this database server and the SQL instance name is:  SERVER1\DB

Do i force a workstation to connect to a specific NIC adapter/IP of my database server by pointing the SQL instance name,  for example into: 192.168.1.10\DB  ?

Does SQL read the IP in the instance name rather than hostname?

Thanx


Get active user login details in MS SQL 2008

$
0
0

Hello,

I have a requirement of testing currently logged in users to my server. When I searching on internet I got,

Text
exec sp_who 

which works fine. But it is giving more than required details. My requirement is to status, host name and db name.  How to filter it to get one row per one host ?

Or Is there any other alternatives to my requirement ?

ODBC to SQL Server 2012 instance no longer works

$
0
0

I have successfully connected to a SQL Server 2012 instance from a Server 2008 box in the past via ODBC but now all of a sudden I get the below if I test the connection:

Nothing has changed on either box. I am however able to connect via ODBC from my workstation to the SQL Server 2012 no problem so I have to believe it's the Sevrer 2008 box. I remember having to specify named pipes instead of TCP/IP but I can't find where to change that on the Server 2008 box. Both protocols are enabled on the SQL Server 2012 box. What can cause this?

Instead of delete trigger - do nothing

$
0
0

Stupid question time - I want to set up an instead of delete trigger on a table to basically cancel any deletion attempt. 

Can I just use the below or do I need to add something else?

SQL
CREATETRIGGER[dbo].[262_DEL-CustomerReturnLine]ON[dbo].[CustomerReturnLine]INSTEADOFDELETEAS

Log SQL connection to a file or table

$
0
0

Hello,

I am using MS SQL server 2008. I have a requirement to get a report on total number of connections/logins to my SQL server in a day.

How can I log each connection (to my server and database) to a table or to a log file in SQL?

Please help me.

Time for new SQL server?

$
0
0

Right now our server is virtual and I wonder if adding a physical server would help performance. I ran CrystalDiskMark with these scores:

What I've played with on Dell's configuration site is an R630 with 32GB memory and 8 400GB SSD drives in RAID 10.  New server would have dual Xeon E5-2623 CPU's. Should it be broken up into two RAID 10 arrays? 

The virtual server we now use has 22GB memory and 2 CPU's (8 cores). By looking at the scores above, would I see a noticeable performance increase? Database is about 15GB.

How do transaction backups roll up?

$
0
0

Time for my daily stupid SQL question!

We currently have 3 backup schedules on SQL Server 2012:

  1. Full backup at 10pm
  2. Full backup at 7am
  3. Transaction backups between 7:30 & 20:00

The full backups all run at around 22GB, as does the first transaction backup of the day. Every transaction backup after that runs at around 70-100MB per 30 mins.

To my mind, the first transaction backup should be tiny. Pretty much nothing happens between 7:00 & 7:30.

It seems that it's not taking into account that we're taking a full backup at 7:00, and is instead doing a transaction backup for everything that's happened since 20:00 the previous night.

Is there any way to confirm that?

When can I change the location of DB and Logs when installing SQL Server 2012?

$
0
0

Hello,

I have to install SQL Server 2012. I would like to place the DB (data?) And logs on another drive than C: \ where SQL Server is located.

During the SQL Server installation, at what point should I choose this please? I'm afraid to be wrong and start the whole installation!

I think it is in the "Instance Configuration" and that we must place the instance root directory in the other drive.

Thanks!



From Zero to Hero: SQL fun

$
0
0

Background: We are a small business and have no domain implemented. Everything we use (email, file server, etc) is all cloud based. I have had no reason to implement a domain since there are only 20 of us.

So, I have been tasked with quoting a server to accommodate some new software for auditing and inventory built on SQL. I have very little input yet other than a vague infographic that says we need SQL and Crystal reports in order to install this software.

Here's where I'm struggling:

Now, that we are going to need this SQL server and APP server (**I was told a laptop could run this whole thing, but this infographic says otherwise):

1)Should I implement a domain for these servers to sit on?

2)Do I have to?

3)Should I go physical or stay cloud like everything else we have?

75% of my office is remote and will be utilizing this program as...

Migrating .accbd to SQL?

$
0
0

Hi all,

we have a relatively small access DB that we use to track time for employees. This application was written by the owners brother and was not intended to be used outside of the lan. it is a separate front/end back/end setup with each "client" opening a local copy of the front end, and has linked tables to the BE. Well, times change.. First we got a bunch of off site employees and we tried to run the application over the VPN, but had constant data corruption and performance issues. (we think latency related). At the time we were running a server 2012 essentials box and decided to try to serve it through remote app. This worked good for a while, but the decision was made to move to 2012 standard and now remote app is WAY to expensive for us to license. we are office 365 users and our plan does not include the right to install...

Dell DBA Days Webcast Series

Snapshots v Caching in SSRS

$
0
0

Hi,

First post for a while :)...

Could someone give me some advice as to the best way of improving SSRS report performance? I have one central management report that all of our management team use to measure financial performance. 

Given the volumes of data the report can take a few minutes to run each time and I'd like to find the best way to enable this for my users.

Problem is that one report is used by 6 different department heads, who will have different crirteria that they wish to use, which I understand will affect / negate the ability to Cache of Snapshot the data to any benefit?

Any and all advice appreciated as usual!

Cheers

Glenn

Microsoft Data Science Summit

$
0
0

Come build your big data and machine learning skills in Atlanta this fall! The new Microsoft Data Science Summit is a two-day intensive event for data scientists, big data engineers, managers and machine learning practitioners. Join your peers and industry leaders to take on real-world challenges, build connections, and go deep into the disruptive technologies that can give your business key insights and competitive advantages. The summit features three specialized tracks—Advanced Analytics, Big Data, and Solutions—so you can focus on the knowledge you want, including:

  • The latest big data, machine learning, and open-source technologies
  • Hands-on labs with Cortana Intelligence Suite, Microsoft R Server, SQL Server 2016, and open-source technologies
  • Real code, real products, and real-world examples
  • Relaxed networking opportunities with...

SQL Question

$
0
0

I apologize for the terrible topic name, and for asking a question that I could Google for, if I could just think of the right search terms to use...

I'll preface this question with a disclaimer that I in no way consider myself an expert with MSSQL or databases. I have no formal training on the topic, and everything I know has been learned through Googling my way though things. I apologize if my question is confusing.

I need a query that will go through a table and sum the values in a given column where the values in another column match. Example data set and desired result set are below. What would be a good way to accomplish this?

UID Part# Qty

1  part1 15

2  part1 5

3  part2 18

4  part2 26

Part# Qty

part1 20

part2 44

Searching SQL Server 2008 Stored Procedures

$
0
0

We have a lot of stored procedures in our SQL Server 2008.  One of them is sending out an email to a few of our users and I need to disable it. I looked everywhere and can not find where the stored procedure is located.  

Is there a way I can search the CONTENT of the store procedure code in SQL Server 2008?  

As of right now, I can only filter them by the stored procedure name.


Which type of disk would you use for an OLTP MSSQL database?

$
0
0

Hi

We're about to purchase a new Dell PowerEdge R630 or R730 server to host Windows Server 2012 R2 Standard and SQL Server 2014 Standard and I can't decide which disks to go with.

We've decided on RAID 10 (using 4 disks), a PERC H710P 2GB RAID controller and have a choice of 3 types of disks:

300GB 10K RPM SAS 12Gbps 2.5in Hot-plug Hard Drive [400-AJPK]
300GB 15K RPM SAS 12Gbps 2.5in Hot-plug Hard Drive [400-AJRU]
400GB Solid State Drive SATA Mix Use MLC 6Gbps 2.5in Hot-plug Hard Drive [400-AIGK]

There are also a couple of other disks available - SATA SSD Read Intensive and Write Intensive, but I've discounted those.

I've read that SAS is full duplex and SATA is half duplex and can see that there's a difference in the max transfer rate (600MB/s vs 1200MB/s) and I know that the IOPS for any SSD will likely be far higher than any spinning...

MS SQL 'WHERE NOT EXISTS' issue

$
0
0

Hi all,

I am not sure if spiceworks is the right place to post this, as it's a SQL script issue. Shoot me down if you need to!

I have two tables, Employee and EmployeeHolidayYearsEntitlement. The first table holds details of all employees, whereas the second only shows details of additional holiday entitlement(common relationship is the empid). I need to produce results showing what Employee's in the Employee table do not appear in the EmployeeHolidayYearsEntitlement table.

I created a SELECT that showed all employee's in the EmployeeHolidayYearsEntitlement table(only one so far), and then popped that into another query, see below;

SELECT * FROM Employee
WHERE NOT EXISTS (select Employee.empid, EmployeeHolidayYearsEntitlement.YearNo from Employee INNER JOIN EmployeeHolidayYearsEntitlement
on Employee.empid =...

SSRS Report Limiting Parameter to date range

$
0
0

Hi all,

I have an SSRS report that has parameters to include peoples names. I wanted to see if there is a way to limit one of the names to only a certain date range. I have it setup so all names can get all date ranges, but I want to limit some to only specific date ranges..

So generically as an example.

Name 1 - all date ranges

Name 2 - all date ranges

Name 3 - Only date range between 1/1/2016 and 6/30/2016

SQL Server Upgrade

$
0
0

Hi Guys,

Sorry if this has already been asked but I did search an could not find a answer.

I need to upgrade our 2008 SQL servers and thought it was an opportunity to upgrade the OS as well.

I have 3 sites all running 2008R2 OS and 2008 SQL specifically 10.0.5538.

I have licensing so I thought 2012R2 OS and 2016 standard SQL per core.

The question is, is it safe to do an in place OS upgrade? It worked fine for all other servers.

Then the question is is it just an in place upgrade of SQL.

I have to do this before September so I cannot wait for 2016 OS which is a shame.

Thank you for your time.

Forgot to mention the workload on this is minimal, I mean really minimal, and downtime is not an issue.

SQL replication

$
0
0

I am trying to setup sql replication between two servers over internet.

I have remote domain server that I have database that I want to be replicated to an inhouse standalone server.

SQL 2012 is used on Server 2012. I have tried to setup SQL transnational replication without much luck.

Is there any 3rd part software that can do the job?

Viewing all 4871 articles
Browse latest View live


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