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

SAN's and SAN switches for failover cluster

$
0
0

Hello,

I'm not 100% sure on how this works but basically, I've been asked if 2 SAN's can be connected to each other, replicate from one to the other and setup a failover, in case of a power outage or failure. 1 of the SAN's contain SQL databases which is what they want to replicate to the other SAN.

I've used Failover clustering before with 1 SAN box and 2 servers attached to it and tested taking a server out to fall back on to second server which worked fine.

The 2 SAN's are apparently already connected to each other and there in separate rooms, so there are SAN switches in each room which I'm assuming that's the only way to connect them together if there not in the same room?

I've been reading up on it and I've come to SQL clustering and SAN Mirroring/replication which I haven't done before.

Any help would be great thanks.

Also I've...


SQL Server 2008 Access issue

$
0
0

Good morning,

Currently our research analyst who uses SQL server 2008 management console to pull and import data in our SQL Server database is having issues access data files from our network drives via sql management. They are able to access this data via explorer with no problems. Please help.

Thanks,

Auto increment in an insert statement from a varchar field

$
0
0

We need to create several records via bulk insert in SQL Server 2008 R2. The problem we are experiencing is with one varchar field that must be populated. This varchar field begins with two letters (always the same) then adds the current date (yymmdd) and then adds a three digit integer sequence. The three digit sequence is indicative of the number of records created in the table on that date (001 - 999). The max number of records that can be created on any given date is 999 and we've accounted for that in the bulk insert, but we can't figure out how to get the last part of the statement to auto increment the last three digits.

Example, every record created in this table today is prefixed with YN160607. We've got the script to account for that as 'YN' + convert(varchar(6),GETDATE(),12)

We plan to run this bulk insert when the business...

How do I monitor access to a SQL database

$
0
0

We're setting up a new ERP system and need to track things like user access to modules, program mod dates and times, DB size, you name it.

sql server 2008 R2 SP2 to sql server 2014 mirroring

$
0
0

Hi all,

I have setup upstream mirror site from sql server 2008 R2 SP2 to sql server 2014. We are going to use this mirroring for upgrading to newer version and host.

My quesion is - when I failover and make sql server 2014 primary - is there a way I can synchronize 2008 R2 SP2 mirror from switching roles ? It goes into suspended mode. I believe only upstream mirroring is possible between different versions of sqlserver, but I wanted confirmation/affirmation from industry experts.

Thanks in advance.

Sanjay

Auditing Microsoft SQL Server Clusters

$
0
0

I understand the physical makeup of clustered nodes. If I had to audit SQL Server Clusters in Windows do I just verify the following:

That Windows clusters across the nodes are created in Windows Cluster Manager by creating server groups?

and are SQL server instances across the nodes duplicated and/or replicated?

sccm 2012 r2 error

$
0
0

I'm installing sccm 2012 r2 and getting the following error when providing database info

Text
ConfigMgrSetupWizard Error: 1 : Exception message: [A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)], Exception details: [System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 -...

SQL Query timming out

$
0
0

I have a query that is running against a table that currentlyhas22,796,229rows And I am trying to filter on a varchar(255) and it is timing out. The field is part ofa non clustered index.

Text
 NONCLUSTERED INDEX [IX_A] ON [dbo].[Ad] ( [ClientID] ASC, [TransactionType] ASC, [TradeDate] ASC, [Broker] ASC, [AccountNumber] ASC, [ImportedFile] ASC, [Currency] ASC, [PricePerShare] ASC, [NetAmount] ASC, [Active] ASC ) INCLUDE ( [AccountName], [SettleDate], [Ticker], [CUSIP], [SecurityDescription], [ApprovedBy], [Custodian], [PreAllocated], [Executed], [Commission], [ResultingShares], [Notes], [InterestRate], [MaturityDate], [AccruedInterest], [Par], [OtherFees], [AdvisorBlotterID], [CreateDate], [CreateBy]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON,...

Shrinking SQL DB Logs & Maintaining My Databases?

$
0
0

I am NOT a DBA, but I do play one at work... along with being a system admin, system engineer, backup specialist, blah blah. :)

So, I am trying to get a handle on 3 MS SQL Servers running SQL server 2005, 2008, and 2014 with about 40 databases on each server. I don't want to half-ass this, even though I'm new to it. I want it done correct now, so it doesn't cause problems later. First thing I have done is add these servers to a Nightly backup via Veeam.

If there were maintenance plans, I don't think their working, as I have seen logs grow to 300GB using up all of the hard drive space, causing all of the databases to go down until I shrink the log(s). Right now, I can see a 32GB log file for a 958MB database. Is this normal?

To shrink the log files, I have been using:

backup log MY_DATABASE with truncate_only --the database name

...

SharePoint_config.LDF log file is too BIG (22 GBs)!! How to shrink it?

$
0
0

Self-explanatory issue, but here's my predicament:
- I don't have SQL Mgmt Studio on this VM and, thanks to the bloated SP config log file, I don't have room to install it. 
- I have another VM that does have SQL Mgmt Studio, and (hypothetically at least) I can connect over to the SharePoint server, but I do not have any SQL login credentials and Windows Credentials aren't working. 

How can I fix this, please? Thanks. 
 

SQL Server Developer

$
0
0

Can any good SQL Server developer troubleshoot query problems in a contact management or ERP system that runs on SQL server even though they are not familiar with the application itself?

For example, can I find a good SQL server developer that never heard of our ERP system and have him troubleshoot it?  I would imagine that if he knew SQL server then that should be good enough knowledge for him to troubleshoot in most cases?

SQL Server

$
0
0

Can any good SQL Server developer troubleshoot query problems in a contact management system that runs on SQL server even though they are not familiar with the application itself?

For example, can I find a good SQL server developer that never heard of our contact management system and have him troubleshoot it?  I would imagine that if he knew SQL server then that should be good enough knowledge for him to troubleshoot in most cases?

DSN connector fails

$
0
0

We created a new ODBC/system dsn connector for AWS for MS Access to relink specific tables on the new AWS SQLserver, the connection strings to the server are good.It was created fine, no worries

When we use the linked table managerin MSAccess and “always prompt for new location” with the dbo_SysParms table it can’t find it yet we see it fine in SQL using SQL SSMS and the new DSN connector connects to the ASW SQL server. How does Access know what DB to connect to on the SQL server or fid the table without providing the DB name? I see no way for a full connection string that would point it to the correct DB, is there a way to do this?

It errors with this message

Linked Table Manager

The Microsoft Access database engine could not find the object 'dbo_SysParms'. Make sure the object exists and that you spell its name and the...

SQL Server Instance Question

$
0
0

Regarding the 50 instance limit on SQL Server 2012:

Does anyone know if this instance limit includes Analysis Services instances?  The technet documentation is referring to both as 'instances' but database engine services instances run under the database engine service, and analysis instances run under the SASS engine.  Anyone know the answer to that question?

SQL Backup to weekday folder?

$
0
0

Hi All-

My and my co-worker (neither of us know SQL very well other than Admin tasks) are trying to setup SQL backups to go into a specific folder depending on the day of the week.

For production servers we currently use a software called "RedGate" which all you need to do is replace the folder of the day with "".

However, we use the SQL agent to backup non-prod servers. This is the script we are currently using:

Text
-- Name of database DECLARE @DatabaseName VARCHAR(50) -- Path of backup folder. DECLARE @BackupPath VARCHAR(256) -- Name of Backup file DECLARE @BackUpFileName VARCHAR(256) -- Get current date used for suffixing with file name. DECLARE @Date VARCHAR(20) -- Specify path for database backup directory. Make sure directory exists before executing script, else script will give error. SET @BackupPath = "\\nas\backup\Week1\\...

Mystery Records - SQL

$
0
0

I hope I'm just tired from the data migration, but I can't figure out why I have this problem.

I created a temp table of orders which yields 324050 records.

When I join my temp order table to another table I only receive 299930 records. Lets call this table "o"

Which means that 24120 records are not in the second table to join, right? No, problem. I just want to get a list of the records missing. They are all joined on a customerid, FYI.

So I simply query all order records not in the other table. Simple enough..

Select * from o where custid not in (select custid from r)


But I get no results. Ok, it must be doubles right. I cannot find any doubles, even pasted them in excel and highlighted the doubles. Any ideas? I can get more specific if needed, but I don't think you need more specifics than that.

how to edit the built in SCCM reports for drivers

$
0
0

Hi there,

I am having a hard time modifying a built in report that comes with system center. the reason for this is that I know next to nothing about writing SQL/WQL queries. the report I am trying to modify is:

"All drivers in a specific category"

I simply want to add more fields to this report so I can get visibility on where the drivers are sourced from, but it is a bit outside my skill level. when I choose to edit the report I am brought to the "MS SQL server report builder" application. first I tried to simply add some fields to one of the datasets based on some names I found in the object details of a driver objectwithin SCCM. unsurprisingly this did not work. I then tried to modify the existing table so that it showed these new value's.

by doing this I was able to see new columns in the report, but they had no data in them. I...

SQL Data Tools 2016 Availability

Help, my DB crashed! Can I merge data between Databases?!

$
0
0

I am new to working with SQL Server/DBA. There is nobody else here that can help. 

Our SQL Server 2014 lost it's log files when that drive went offline this morning. I did a Veeam VM Instant Recovery from last night, so accounting can continue working in it, while I reconnect the logs and run database checks on the original.

I'm waiting to see if Veeam will actually merge the database data from the Instant Recovery to the original, but I'm starting to think I may need to somehow do this manually??

So, I have 2 virtual servers (copies). 

The original has data from the first half of today. 

The copy has data from the 2nd half of today.

Is there any way for me to take the data from the copy and merge it with the data in the original?

Get the low down on SQL Server 2016

$
0
0


On today's episode of On The Air, Spicehead,shivarrwas back in the building people! Joining him on set was Mark from Microsoftand Carlos from Hewlett Packard Enterpriseto give us the low down onMicrosoft SQL Server 2016.

Since I wasn't able to ask ALL of your questions live on the show today, I've listed a few of the outstanding questions here. Do you know the answer? Or maybe you have a question of your own about SQL Server 2016? Either way, feel free to post it below.

1.BiscuitKingasks, Other than the fact that at some point SQL2012 will be no longer supported, what in SQL2016 would cause me to want to upgrade?

2.digital0akasks, Maybe a dumb question, but if I built a physical now, with the intention to P2V it down the road, am I going to run into problems?

3. Layer3guruasks, Can you explain a little bit about the new cryptographic tech...

Viewing all 4871 articles
Browse latest View live


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