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

Creating a maintenance plan in SQL server management studio

$
0
0

I have 2008r2 Server Management Studio version 10.50 and I am trying to do a automated backup for a database. I understand this is accomplished through a maintenance plan located under the management folder. 

I don't have that in my list.

I am not sure why but I ask the experts where I can find this. 





SQL 2014 merge replication stuck in 99%?

$
0
0

Guys,

We finallyupgraded to SQL 2014 and started to use merge replication, in our test labs everything worked, the initialization was a bit slow but we saw results in monitoring.

Now I have added 4 production DBs, Publisher and distributor on a server and I have another SQL Server in the same Lan, which within 24 hs was able to complete 100 % and another server in another data centre, connected via WAN using a site-2-site IPsectunnel , they have been in 99 % for the last 3 days, there is no errors, the replication is still going but it seems weird as I don't see any progression in the %.

If I query the subscriber stuck at 99 %, all the data seems to be there.

Is there anything I can check, to verify what's going on?

The publisher is still getting new data daily but as the initial replication is not complete I wonder if that's the case of...

SQL Server jobs are failing

$
0
0

Hello,

We upgraded our database server from windows server 2008 r2 sp1 to windows server 2012 r2. Our some jobs are failing. It seems like we are having some configuration issues. I am also attaching my history log. Do you ever get this kind of error before?

I am not getting any error in stored procedure which that SQL Server job belongs. But I am getting an error when I executed this SQL Server job.

Job 'Create_Web_Access_Account_Until_Powershell_Activated' : Step 1, 'create_web_access_code' : Began Executing 2016-08-15 13:35:49

Msg 7416, Sev 16, State 1, Line 655 : Access to the remote server is denied because no login-mapping exists. [SQLSTATE 42000]
Msg 0, Sev 16, State 1, Line 91 : Begin Candidates Aug 15 2016 1:35PM [SQLSTATE 01000]
Msg 0, Sev 16, State 1, Line 141 : Begin Students Aug 15 2016 1:35PM [SQLSTATE 01000]
Msg 0, Sev 16,...

SQL Connection Errors

$
0
0

Good day all!

This morning I have com in to nobody being able to access the Web application we use. I have since rebooted the server and the live environment is no up and running however there are training and dev environments that still are not accessible.
This morning the server would error prior to logging in to tell me that a service had failed to start but did not specify the service.
The only error that relates to the issue is in the system event log:
Product: Windows Operating System
ID:27
Source: Microsoft-Windows-Kerberos-Key-Distribution-Center
Version:
Symbolic Name KDCEVENT_UNSUPPORTED_ETYPE_REQUEST_TGS
Message: While processing a TGS request for the target server %1, the account %2 did not have a suitable key for generating a Kerberos ticket (the missing key has an...

Update Multiple Cells in Multiple MS SQL Record

$
0
0

I have a row called Note, a process that was run added "Barcode has been changed" to about 145 records.  I need to remove just that line from each record but leave whatever else was there intact.  Is this possible, if so how do I do it?  Any help is greatly appreciated.

transaction log for 'database' is full due to 'LOG_BACKUP'.

$
0
0

I am getting this error when trying to access my application.

I can see that my .LDF file is HUGE and I thought I combated this when I set the recovery model to FULL and then performed daily full backups and 30 minute t-log backups - as I thought this would shrink the LDF file, but evidently it has not.

I'm stuck for ideas on what to do.

Upgrade from SQL 2008 to 2008 R2 SP3 - Reporting Services Failed.

$
0
0

So last night I attempted my first SQL Upgrade from 2008 to 2008 R2 with SP3 added on.

I got 3 errors thoughout the process, 2 of which i managed to fix (stopping a service and resetting a logon) and 1 error that I had to click past (locked dll file).  But the upgrade did complete on everything other than the Reporting Services feature.

I applied the SP3 pack which completed successfully (in the end) as well.

How do i upgrade the failed feature? Will running the full upgrade again work?  Or do I do a repair installation?


Remove SA from only one database

$
0
0

Hi There,

Slightly strange request here (I seem to have a lot of those...), but we are changing our trading system. We would like to use our existing SQL server, but don't want our current vendor to know we are moving (yet). Due to historical reasons, they use the SA account to login to SQL (moving forward this won't be a problem).

We would like to create a new DB for our new vendor and hide this from the SA account. Is this possible?

We are running SQL Standard 2016 on Server 2012.

Thanks,

Bryn


SQL Statement Question

Logon trigger that wont block connections if it fails?

$
0
0

I have a logon trigger that I use to track who is accessing an instance.  When someone logs on, I simply throw some info into a table.

If there is a problem for whatever reason, the trigger will fail, and no one will be able to connect to the instance until I log on using the DAC and disable the trigger.

Is there a way to code a logon trigger so that it won't block connections if it fails?

Microsoft SQL Server 2012 - Returning Duplicates

$
0
0

Some background, I'm fairly new at SQL but I'm fairly decent with Queries. We need to export some data out of SQL for a vendor to work with us but for some reason it keeps returning back a lot of duplicate records. The query statement that I'm using is

SELECT
CallLogFlagData.callLogID
, UserID
, dataSourceID
, recordedByUserID
, recordingFile
, DATEPART(yyyy,startTime) AS startYear
, DATEPART(mm,startTime) AS startMonth
, DATEPART(dd,startTime) AS startDay
, stopTime
, callerID
, outboundNumber
, descr
, notes
, transferFrom
, fileHash
, isFileToBeTransferred
, custom1
, custom2
, DNIS
, callID
, recordingProfileID
, encryptionKeyID
, fromCallLogID
, toCallLogID
FROM dbo.CallLog AS CallLog
CROSS JOIN dbo.CallLogFlagData AS CallLogFlagData
WHERE DATEPART(yy,startTime)='2016'
AND DATEPART(mm,startTime)='08'
AND DATEPART(dd,startTime)='01'

We...

What is the minimum permission required to execute a create database script

$
0
0

Hello,

I am using SQL server 2008. I have a requirement of allowing a user just to script database and its tables in MS SQL server.


When search on net I get this answer everywhere but it is not working for me, If I give “View Definition” permission then I used to get this error.


What is the minimum permission required for scripting in SQL server?


SQL 2014 unable to connect to Reporting Services

$
0
0

We setup a SQL 2014 Server. It's going to run along side of a SharePoint server.

When testing the settings, we can connect to:

Database Engine

Analysis Services

Integration Services

but when I try to connect to Reporting Services I get the attached error.

Troubleshooting:

We checked that the services are running

Confirmed that the server is registered

tried to re-register the server and the test failed

It seems to be just the reporting services.

any ideas?

Battling SQL Azure VM Latency

$
0
0
The Facts:
  • Three Enterprise SQL Servers
    • One Internal
    • Two Azure VMs (A2) with SQL Enterprise
  • Two Web Servers
    • Azure VMs / IIS
    • SQL Interaction - Mostly Read - Limited Writing
  • Multiple Internal Applications
    • SQL Interaction Heavy Read/Write
  • Internal Applications feed Website Content

The Problem:

  • Replication
    • Clustering
      • Not an option across the VPN
    • Mirroring/Log Shipping
      • External DBs cannot be written to
    • Transactional/Peer-to-Peer
      • Currently trying but breaks
      • Schema changes are a mess
    • Merge
      • Stored Procedures respond poorly to addition of GUID
  • Latency
    • Queries to Azure SQL VMs is deathly slow page loads from instant to 50 seconds.

The Requirements:

  • Replicate All Data
  • Replicate Schema Changes
  • No Specialized Fields in SQL Tables
  • Fast Response Time
  • Failover
  • Reliable

What I need:

I need at least two SQL Servers - preferably three one internal and two external load balanced....

MDAC for 2k12 R2

$
0
0

Hi,

Need advise here, il installing MDAC_type in 2k12R2 server.

when i started running or installing the MDAC_Type, it pause or hang state.

i leave it in an hour but same results, i use run as, but still not working.

is there a mdac_type for 2k12R2?

Thanks


SQL Migration Frustrations!

$
0
0

We recently moved our SQL databases and Intranet up to the cloud, and are testing out the current set up. However, I am having some issues.

Background:

We moved our classic ASP website simply copying and pasting and turning on classic ASP on the web server. Then we backed up and restored our old databases from SQL Server 2005 to SQL server 2016. I then rebuilt our ODBC connections and they appear to be working.

PROBLEM

After doing this, and opening the website from the web server, we can't open any of our SQL applications. We are getting the following error:

Text
Microsoft OLE DB Provider for ODBC Drivers error '80040e37' [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'ClaimsLog'. /claims/ViewClaims.asp, line 80 

Ok, so it can't find the table...maybe it is struggling to realize that ClaimsLog is a dbo. So I added dbo....

How to update SQL Database from a CSV file

$
0
0

I want to be able to update a table in a SQL database using data from a CSV file created in Excel. Any help in this matter is appreciated.

SQL2012 T Logs - Space Issues?

$
0
0

Hello,

Question about MSSQL T-Logs and space issues. We have an SQL cluster that hosts 50+ databases. The drive that hosts the T-Logs has been steadily expanding. The disk type is basic and also sized at 2TB. We are approaching capacity and I'd like to know what changing the disk type to dynamic will do to a drive hosting SQL T-logs. We have App Assure backing up the cluster. Being generally a safe operation I haven't had to do this yet on a drive hosting SQL T-Logs. The drive has hundreds of GB left but I would like to stay ahead of any storage needs and allocate the additional space now. If conversion of the disk poses no general danger, how would we limit the activity on the cluster while this operation is performed? I imagine there will be a very short period of unavailability while the disk conversion takes place.

Thanks,

J

Easiest way to identify differences between 2 rows

$
0
0

Ok, so I've got a table that effectively contains a before & after snapshot of a specific record from another table for every update made to that record.

The 'before' snapshots have an UpdateType of 1, and the 'after' snapshots have an UpdateType of 2. They can be matched using the DateTimeUpdated field, since that will be the same on both records.

The table's around 165 columns, and most of the time the update will only be on a single column. Is there an easy way to identify which column is different between the before & after snapshot without just scrolling through the table until I spot it?

Ideally what I'd like is a result that just shows which field was changed, when it was changed, what it was changed from, and what it was changed to.

Cheers

Creating a system for automated MSSQL restores?

$
0
0

Backups backups and more backups, but how often are those backups tested?

At a client we reviewed their SQL backups and it turns out the previous provider had for some reason set each SQL backup to expire after a week.

We corrected that issue as an expiration was not required, we also found that they had never tested any of their backups with a full restore to see if they were good backups.

That being said, I am creating an environment to do test restores of each backup done. With most of the backups being fairly small, with one larger 36G one (looking to trim the size) I had hoped to automate as much of the process as possible.

In a perfect world:

1. Copy backups from file server to Restore environment

2. Import database into SQL

3. Work it's magic

4. Notification of restore if successful or failed

5. Empty database of restore and leave system...

Viewing all 4871 articles
Browse latest View live


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