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

SQL Server 2014 Standard - Physical Data disk Partitioning

$
0
0

Hi,

I am looking to setup SQL server 2014 on a VM using Hyper V. I will be using 3 separate VHD's for system (100GB), data(800GB) and logs (100gb) on the VM. I just wanted to ask how I should go about andbest practice for partitioning the physical data disk on the host machine (I have a separate array for the OS on the host)? 

Thank you

John


Easy way to simulate a SQL workload on a server

$
0
0

Hello,

  We have a need to simulate a SQL workload on a server in order to test a new backup solution. Nothing fancy that requires a bunch of scripting or handholding. I've seen several options out there and thought I'd ask here to see what everyone had to say. We;re installing SQL, but just need a tool to put a load on it.

SQL data selection command

$
0
0

Hello Spice Works Community,

I have a SQL database that contains a table which has a column listing dates in the following format "Jan-2016, Feb-2016, etc"

The list has goes back a number of years, I am looking for a SQL command which will return month results for 2016 and 2015 only "Jan-2015 through to Jul-2016".

The actual DB is on Azure and I am pulling information through from one of the tables to an Excel Spreadsheets to present the information in a more readable format for some of our users. Within the Excel spreadsheet I have created a Workbook connection, then under the definitions tab I am attempting to run the following SQL command;

SELECT Month
FROM "Submissions_Staging"."dbo"."Period"
WHERE MonthLIKE '%2015'
OR Month LIKE '%2016';

When this is run literally nothing happens. Anyone have any ideas, I am sure it's something...

SQL Server 2008 TRN Files

$
0
0

Good afternoon all,

Is there any simple way to read .TRN files created by SQL Server Transaction logs?

e.g. if someone updated col1 in table1 to 0 could I find this in the TRN logs and how exactly would I go about it?

Thanks,

Bepster

Can't install TLS 1.2 on SQL SERVER 2008 R2 with SP 3

SQL Memory Question

$
0
0

I currently have a SQL 2005 server that initially had 48gb of Ram, and 36 of it was set as max for SQL. Over the weekend I installed 128gb and was going to adjust the Ram on SQL. So the question is, should I set the Max to 120, leaving 8 for server and websites hosted on server?

Also what should I set the min to? 0? or raise that?

Thanks

Cip

Upgrading Microsoft SQL 2008 to 2008 R2?

$
0
0

So we have recently purchased some software that turns out has some compatibility issues with SQL 2008 and have been advised by the software support guys that we need to upgrade from SQL 2008 to 2008 R2.

I have never done this before and i'm not even 100% sure where to start.

It is virtualized so I was planning on taking a snapshot image of the server incase I make a pigs ear of it. And also having a replicated one in a sandbox environment to test it out first.

Can I manually download the software I need anymore to do it or does it have to be done through a wizard? 

Anyone got any useful pointers or things to look out for?

Thanks in advance.

Steve

SQL Server Questions - General

$
0
0

Hi Guys,

I know enough about SQL Server to be dangerous ;)

I have a 2012 SQL Server (on a Windows 2012R2 VM - ESXi) that I setup in our environment and can deploy new instances as required, or remove them, without killing everything. The Current SQL box has 3 running instances for our Payroll, Accounting and Rostering Packages and all are running perfectly with their associated Front Ends.

We are now looking at deploying Sharepoint 2016 and a Forms Based Software package into our environment. So I guess my question is: I need to use SQL as the backend for both of these so can I add more instances to the existingSQL server or setup a new independent SQL server with the new instances?

We are a smaller environment with approx. 100 users at most. Just basic office stuff on the most. The Finance team uses the Payroll and Accounting software...


SQL Data Warehouse Books?

$
0
0

Looking to get recommendations on creating SQL Data Warehouse or a good SQL T-SQL book that will go through data warehouse.

Note: I'm proficient on T-SQL, enough to pull info. I've created a data warehouse before using data tools and Visual Studio. So I'm looking for a good reference book.

Any recommendations is much appreciated as there isn't any decent videos I know.

SSRS permission issues

$
0
0

It was recently brought to my attention that users are able to modify SSRS more than their role should allow.  The user is a member of a group called SSRSUsers who are granted Browser role in SSRS.  However this user can somehow modify permissions, run report builder, among other things.  This should not be the case.  How could this be happening?  

multiple IIF's in SSRS

$
0
0

I have been playing with this for about an hour and figured I would reach out for some assistance. My eyes are ready to pop!

The SSRS statement below works except for the condition whenFields!CSHRCTYP.Value = 2. Instead of displaying "Credit Card" it displays "Check Number"

Invoice, finance charge, credit memo and checks all display correctly. Cash and Credit card do not. I think the issue is that I am not using the multiple IIF statements correctly.

Any thoughts would be greatly appreciated.

=IIF(FIELDS!RMDTYPAL.Value = 9 AND Fields!CSHRCTYP.Value = 0,"Check Number " + LTrim(RTrim(Fields!CHEKNMBR.Value)), IIF(Fields!CSHRCTYP.Value = 1,"Cash Payment" , IIF(Fields!CSHRCTYP.Value = 2, "Credit Card Payment", IIF(FIELDS!RMDTYPAL.Value = 1, "Invoice", IIF(FIELDS!RMDTYPAL.Value = 4, "Finance Change" , IIF(FIELDS!RMDTYPAL.Value = 7, "Credit...

Multiple MS SQL Server Instances and Versions on same Server?

$
0
0

Hi,

In some of the sites where I work the server usage is changing at the moment somewhat due to the main mission critical MS SQL Server Instance and DB being migrated to a cloud hosted service, so that is now out of our hands. However each site also has a number of critical, but small, databases that need to still run and be present. Before the main DB went to cloud, some of these smaller DBs/instances would be on the same SQL Server as the main DB, some would be in their own instance, some would be in the instance of the main DB. Then there would again be some DBs on yet other virtual servers.

What I was hoping to do is it gather up all these smaller DBs and put them all on one dedicated 2012 R2 server, who's purpose would be to host the various required MS SQL instances and databases. The issue with this is that they mostly come from...

SQL Server 2014 SSIS ODBC or ADO.Net?

$
0
0

I'm creating my first SQL Integration Package on my new SQL Server 2014. I will be pulling data from several IBM Informix databases hosted on Windows Server 2008 R2 machines. I was researching and found that OLE DB was faster than ADO.Net and ODBChttps://datatellblog.wordpress.com/2015/01/13/ssis-data-flows-ado-net-vs-ole-db-vs-odbc/

, but then I found the notification from Microsoft that OLE DB is depreciated as of SQL Server 2012, and I'm not even sure it can connect to Informix.

https://blogs.msdn.microsoft.com/sqlnativeclient/2011/08/29/microsoft-is-aligning-with-odbc-for-native-relational-data-access/

So, before I get much further, what is the recommended Connection type? I may be pulling 500,000 records.

SQL Jobs are enabled, however they are not running

$
0
0

We took databases offline last night.  Ran this to disable jobs:

USE MSDB;
GO
UPDATE MSDB.dbo.sysjobs
SET Enabled = 0
WHERE Enabled = 1;
GO

We then brought the databases back online and re-enabled the jobs:

USE MSDB;
GO
UPDATE MSDB.dbo.sysjobs
SET Enabled = 1
WHERE Enabled = 0;
GO

But the jobs did did not kick off.  If I go and manually disable / enable the jobs they start to work.  

Looking at the jobs they all say enabled.  Both from inside the job properties as well as in MSDB.dbo.sysjobs.  The interesting thing is that in the job properties as well as MSDB.dbo.sysjobs the date_modified only shows the date/time which we disabled the job.  That must be a clue? Also, SSMS was having some odd connectivity issues.  But how can it say enabled yet not run?

SQL 2003 and SQL 2008 R2 in Windows SBS 2008

$
0
0

I have a client who has an SBS server 2008 running SQL 2003 Express.  Am I able to install SQL 2008R2 standard so they coexist?  I would hate to install it and mess up the exchange server.


SQL Server 2014 Express - Ok to install "with SP2" on Windows 7?

$
0
0

We currently have SQL Server 2008 R2 Express (with SP2) running on a Windows 7 (SP1) PC. The database is for a SQL software application used in our industry and runs on this PC with it, all contained.

As 2008 R2 is no longer under mainstream support, we're being advised by our vendor to upgrade, preferably to SQL Server 2014, which I'm making preparations to do.  I see Windows 7 SP1 listed under system requirements for the RTM & SP1 versions, however when I look to download the latest SQL Server 2014 Express "with SP2", Windows 7 is no longer listed. If I'm to upgrade on our existing system, do I need to pass on the latest SP2 and install SP1 instead?

Please advise. Thanks.

Chris

SQL Server event ID 2003

$
0
0

I'm running SQL Server 2014 SP2 and getting a bunch of 2003 Event ID errors in event manager

"The configuration information of the performance library "perf-MSSQLSERVER-sqlctr12.4100.1.dll" for the "MSSQLSERVER" service does not match the trusted performance library information stored in the registry"

We had this error before the upgrade to SP2...I was hoping that SP2 would get rid of the error, but that hasn't been the case.

Converting multiple rows into one row of data

$
0
0

Hi All,

I'm trying to write a query to bring in the description field and not duplicate my data by doing so. The description field is up to 48 characters by design and can have up to 10 lines of descriptions for one record. My results currently look like this:

mmattermdesc1tkfirsttklasttbilldoltinvoicetbatchtddesctdlinetdindex
01572-18443AIR CARRIER ACCESSORY SERVICE, INCROBERT M.QUINN168874713511931FOLLOW UP WITH F. DRISKELL RE: DEADLINE FOR139818421
01572-18443AIR CARRIER ACCESSORY SERVICE, INCROBERT M.QUINN168874713511931TRIAL EXHIBITS AND PRETRIAL; REVIEW OF239818422
01572-18443AIR CARRIER ACCESSORY SERVICE, INCROBERT M.QUINN168874713511931COMPLAINT RE: ISSUES339818423

but I would like them to look like this for each line:

...
mmattermdesc1tkfirsttklasttbilldoltinvoicetbatchtddesc

Restrict permission for selected members of group

$
0
0

Hello,

I am using MS SQL server 2008. I have a data base “Product details”, in that I have 4 tables A,B, C and D.  Now I have a requirement of denying access to table “B” and “D” for some users of group “admin”.

Currently I am using deny option, which denies the access to all the members of group.

So Is there any other alternatives for me to restrict access to table only for selected members of group ?


SQL Server 2014 VSS Error

$
0
0

My SQL Server backups are failing. SQL Server 2014 SP1. OS is Server 2012 R2. 'vssadmin list writers' shows SqlServerWriter with a 'non-retryable error'. After a reboot the writer shows no error but errors out after attempting a backup. I get the following errors in the Application Log:

Log Name: Application
Source: SQLVDI
Date: 7/25/2016 9:38:55 PM
Event ID: 1
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: xxx.xxxxxxx.net
Description:
SQLVDI: Loc=TriggerAbort. Desc=invoked. ErrorCode=(0). Process=1772. Thread=8536. Server. Instance=MSSQLSERVER. VD=Global\{1F124942-8720-4F52-A0C9-21A29D20189E}314_SQLVDIMemoryName_0.
Event Xml:
;


1
2
0
0x80000000000000

2106877
Application
xxx.xxxxxxx.net



TriggerAbort
invoked
0


1772
8536
...
Viewing all 4871 articles
Browse latest View live


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