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

SQL Server Migration from 2008 R2 to 2016

$
0
0

0down votefavorite

I will have to move the databases from SQL Server 2008 R2 to 2016.. 

Currently, I am using SQL Server 2008 R2 which is installed in Windows 2008 R2 Operating System. Now my client wants to have SQL Server 2016 in new windows server(i.e. Windows 2012 R2). So I am planning to do server migration along with Database migration.

Could someone suggest on how to get the Database migration done in all possible ways.

Your help is much appreciated.

Please let me know if my ask is not clear.

Thanks


SQL Dependency Checker

$
0
0


I’m looking for ways to check Microsoft SQL Server’s dependencies.

I have seen and will try Redgate’s SQL Dependency Tracker for sure.

Any other applications / ideas?

I am in charge of moving SQL Servers and their Databases in batches from one data Center to the next! So basically yes; need a way to migrate sql, it’s applications and its internal dependencies!

Oracle to SQL replication

$
0
0

Hi Team,

We have Oracle server 12C and few tables of database is configured for replication to SQL Server.

we had replication between Oracle 12C to SQL 2008R2, Now we are moving SQL 2016.

Multiple Issues on new replication:

1. When Oracle publisher is added under distribution properties, linked server will be created automatically with Oracle Source name, but test connection failing with below error.

Server 'xxxx' is not configured for DATA ACCESS. (Microsoft SQL Server, Error: 7411)

2. When I tried to add publication articles, Am getting below error

Constraint column 'xxx' not found in table 'xxxx'.
Changed database context to 'distribution'. (Microsoft SQL Server, Error: 21613)

3. while adding articles, at article properties, I would see datamapping window is empty

Things I tried:

Created linked server manually, with same details of Oracle...

MSSQL timeouts while running backups

$
0
0

I have an SQL box and a NAS, every night the backups are sent direct to the NAS. The backups are compressed but the CPU load on the server is 20%, I do see CPU spikes when I do consistency checks but that only happens on the weekends so not a factor in this question as this is a Mon-Fri concern. When the backups run I see a lot of outbound disk unsurprisingly.

There is an app that hits SQL that recently got hightened levels of alerting turned on for it and now sends out alerts every night in the middle of the backups that it can't hit SQL. The logs show SQL timeout errors and as it has no issues any other time I'm thinking it has to be backup related. It happens for both diff and full backups.

I wondered if it is because the Nic is getting to tied up with transmitting the backup data and wondering if there is a way to throttle that back...

Trigger on views

$
0
0

Hi, I have following tables and a view:
TableStaff (UserId,Username,Firstname,Lastname)

TableFeatures (UserId,Option,Notes,LogDate)

TableExport( UserId,Username,Firstname,Lastname,Feature,Notes)

ViewStaff( UserId,Username,Firstname,Lastname, Feature,Notes)

Is it possible to create a trigger onViewStaff which can do following:

When data is inserted with the "Feature" column then it will copy UserId, Username, Firstname, Lastname, Option, Notes to theTableExport.

I have tried following, however when data is inserted it is not copying to the TableExport

SQL
CREATETRIGGERtrig_Staff1ONViewStaffINSTEADOFINSERTASBEGININSERTINTOTableExport(UserId,Username,Firstname,Lastname,Feature,Notes)SELECTUserId,Username,Firstname,Lastname,Feature,NotesfromInsertedEND

Any help would be much appreciated, thank you.

MS SQL help

$
0
0

I have this bit of T-SQL code. Can anyone tell me what the "VALUE_DATE_OFFSET_NO,-20" and "VALUE_DATE_OFFSET_NO,20" gives me?
No comments in the code. What is this trying to achieve?
Is it saying to subtract 20 from the column and add 20 to the column for the declared variables?

DECLARE @MinCapacityOffset INT
DECLARE @MaxCapacityOffset INT


-- Look up the minimum and maximum offsets specified in the Capacity standards table.
SELECT  @MinCapacityOffset = MIN(ISNULL(TCAPACITY.VALUE_DATE_OFFSET_NO,-20)),
      @MaxCapacityOffset = MAX(ISNULL(TCAPACITY.VALUE_DATE_OFFSET_NO,20))
FROM  TCAPACITY

Open Ports for SQL

$
0
0

I have a SQL 2008 server that I'm having difficulty connecting to remotely. If I disable the Windows firewall on the server, our program can connect to the database. If I have the firewall turned on, it can't, but I'm not sure which port(s) to open. I looked around and it sounded like TCP 1433 and UDP 1434 were the default ones but that's not working. Is there a way to find out which ones the server is using?

Thanks.

cannot generate sspi context

$
0
0

We are using orbis taskcenter to run task involving the sql server, (two seperate servers).
This morning when I got into the office I had 285 error allerts from orbis saying " cannot generate sspi context" so far what I can find about this error is that the orbis taskcenter cant authenticate to the sql server.

This could be caused when the login credentials for sql had changed (which it haven't) and also the errors stopped on their own without changing anything further.
Anyone any thought on what else could be causing this error if the login credentials are correct and the connection to the server is in good working order as well?


Error uninstalling SQL Server 2016 Standard on Windows Server 2016 Standard

$
0
0

I accidentally installed SQL Server 2016 Standard and meant to install SQL Server 2016 Enterprise. I was not able to install Enterprise over the top of Standard due to errors, so I decided to uninstall Standard. There were multiple SQL records found in Control Panel Programs and Features. Finally got down to the last two program entries found in Control Panel Programs and Features. Those two are Microsoft SQL Server 2016 (64-bit) and Microsoft SQL Server 2016 Setup (English). When I try to uninstallMicrosoft SQL Server 2016 (64-bit), I am presented with an error that says "There are no valid SQL Server 2016 features to perform this operation."

I can uninstall Microsoft SQL Server 2016 Setup (English), but the other entry still produces the same error and when rebooting the server, the Microsoft SQL Server 2016 Setup (English) entry...

How to SQL equals string?

$
0
0

How do I build a CASE statement where I want to compare the same column, but different records. I know I can use LIKE, however in order to use LIKE, you know what you are comparing. I would like to compare the records without know what the string is. I inserted an example below. Same Estimate number, different Line number, but same Item number and description. For the Estimate number I would like to compare the Item number then compare the Item description then return the MAX of the Price column.




How can i configure a write only folder and how to make credantias in a server?

$
0
0

first I need to know how to make credentials then how to make a write only for a user and write and read for another. 

I can't get my query to do what I need

$
0
0

Hello everyone, thank you in advance for taking a look at this.

I have my query written and it's working GREAT (I used SSMS to build it).

The last step I need to take is to group by column "A" but sum together the totals of column "Y". I'll give you an example... please refer to the Screen Shot.


As you can see, in the DESCRIPTION Column we have a few items that are the same with the same number of quantity on hand. But if you look at the SALES and COST columns, they are different numbers. I need to group by the DESCRIPTION but give me only one resulting output for the SALES and COST...a sum of the different lines.

Basically, I need one description on each line with all the different amounts in SALES and COST added together.

Here is my query to get where I'm at now. Please keep in mind that the output is in the EXACT format that our 3rd...

Copy a SQL database

$
0
0

I am helping out this nonprofit org that wants a copy of their production database for testing purposes. It would just need to be an exact copy on the same server right within SQL Management Studio 2008. Is this as easy as doing a right click --> Tasks --> Copy and walk through the wizard? I am not experienced with SQL Management Studio and I do not want to mess with their production database. 

Thanks!

DBCC CHECKDB failing on TEMPDB out of space

$
0
0

Hi All,

Can some one provide me solution how to resolve this DBCC CheckDB failing on Tempdb out of space issues.

Create a User DSN with a SQL user account

$
0
0

We have a legacy application with no Domain Authentication.
I can create a user DSN in GPO or with registry settings or with a script. But I need it to store a password.

Is this even possible. I know about the security problems that can cause this.


The database (database_name) is not accessible. (ObjectExplorer)

$
0
0

I am not able to do do anything on the database. I am running Microsoft SQL Management Studio 17

I cannot able to detach the DBs nor delete. I am unable to expand the DBs.

I am an administrator.

This is the message I get when I try detaching the file:

TITLE: Microsoft SQL Server Management Studio
------------------------------

Detach database failed for Server 'BGTD05\SQLEXPRESS'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=14.0.17276.0+((SSMS_Rel_17_...

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

The server principal "Server/username" is not able to access the database "Database_name" under the current security context....

SQL Server Report Builder for Server 2005

$
0
0

Hello again, everyone!

As I am just learning how to use SQL server, I have been asked to start utilizing the SQL Server Report Builder; however, I am faced with a few problems.

The SQL server our company uses is 2005. The report builder I have is for 2016. How can I get a file created for 2016 to upload properly into 2005?

What I've tried:
- Finding a version 1.0 download (but I understand that was still released with 2008)
- Editing the .rdl file to match what an existing 2005 .rdl looks like
- I have tried searching for converters
- I am currently installing SQL Server 2005 on my local machine just to see if I can get anywhere with that
- I am loading up an old XP machine to see if the "Report Builder" tool on our report website will work with that OS considering it doesn't work with Win10.

I may be going about this all wrong, but I don't...

Sql server licensing

$
0
0

helo,
i have a question please
i have a 2 servers. Each server has 1 CPU's. They are 8 core. I need to license SQL server 2017 and 40 licence for 40 users to run as a VM on this cluster one of each phsicial server .
Do I need to purchase 2 licenses of SQL ?
Which license would you purchase?

SCCM 1803 and SQL 2017 CU7 ?

$
0
0

So is SQL 2017 CU7 incompatible with SCCM 1803?

Rebuilding my SCCM setup, all from scratch, on two newly installed Server 2016 servers (One for SQL, one for CM)

On my SQL server I have installed SQL 2017 and updated to CU7. It works, my SCCM server successfully installed the WSUS DB to it, but when I try run the SCCM setup it errors at the SQL section saying

"configuration manager requires microsoft sql server 2012 with cumulative update 2 or higher"

On the MS site (https://docs.microsoft.com/en-us/sccm/core/plan-design/configs/support-for-sql-server-versions) it says 2017 is supported with a minimum of CU2, nothing about maximum.

Anyone know if this works?

Cheers

Update excel column from MS SQLSERVER table.

$
0
0
From a SQL 2008R2 database, using Exlcel 2010,
I need to update the D cell (Account No)-number by using the values in the C cell (Client ID) -text.
The key to select off the SQL table, CLients, is CLIENT_ID (text) and I need to return the SQL column ACCOUNT_NO (int) and update the column 'Account No' on the excel spreadsheet.
I'm assuming I need to create an ODBC to the SQL Database, which I have.
Viewing all 4871 articles
Browse latest View live


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