Quantcast
Viewing all 6989 articles
Browse latest View live

SQL server error with 3D program "SOLIDWORKS"

I want to install a SQL server for a 3D sketch program called "solidworks". If i run de installation setup of solid works gives every time the same error about the SQL server. I have a brand new ASUS ROG GL552VW-CN354T laptop. I tried to install a new version of SQL server, and again an error.

screenshot of the failed installation of SQL 2016

The executable file "C:\Users\andre\OneDrive\Documents\SOLIDWORKS Downloads\SOLIDWORKS 2016 x64 SP02\PreReqs\SQLServer\SQLEXPR_x64_ENU.exe" /ConfigurationFile="C:\ProgramData\SOLIDWORKS Electrical\SWSQLSetup.ini" /IACCEPTSQLSERVERLICENSETERMS /Q /SAPWD=SQLpwd4ew /AGTSVCPASSWORD=SQLpwd4ew did not install successfully.



SQL Server 2016 Business Intelligence tools and training

We are looking for an installation of SQL Server where it serves a data warehouse, runs ETL jobs on the data, and provides Business Intelligence information by using dashboards, reports, etc. From my research, it looks like SQL Server 2014 had a specific BI edition but for 2016 all BI tools are only offered in the Enterprise edition. Please correct me if I am wrong.

Is there a place to find specific SQL Server 2016 BI tools documentation and specific training?

It appears as though I would have to decide between Standard and Enterprise editions of 2016.

The few differences that I can see but not completely understand:

1. BI - Advanced tabular model
2. BI - Direct query
3. BI - In-memory analytics
4. BI - Advanced data mining
5. Advanced data integration (fuzzy grouping and look ups, change data capture)
6. Data warehousing (in-memory columnstore, partitioning)

Maybe the training courses 20767 and 20768 might be able to provide clarity on these limitations of the Standard version. If there is a better or easier way to get that information, please let me know.

Uninstalling SQL Server

I have uninstalled SQL Server 2012 through the Control Panel including both the "Microsoft SQL Server 2012" and "Microsoft SQL Server 2012 (64-bit)" programs.  Even though I selected all the instances and features to be removed, I still have programs listed with names associated with Microsoft SQL Server 2012 in the Control Panel as follows

  • Microsoft SQL Server 2012 Command Line Utilities
  • Microsoft SQL Server 2012 Data-Tier App Framework
  • Microsoft SQL Server 2012  Data-Tier App Framework (x64)
  • Microsoft SQL Server 2012 Management Objects
  • Microsoft SQL Server 2012 Management Objects (x64)
  • Microsoft SQL Server 2012 Native Client
  • Microsoft SQL Server 2012 Transact-SQL Compiler Service
  • Microsoft SQL Server 2012 Transact-SQL ScriptDom
  • Microsoft SQL Server 2012 T-SQL Language Service

Do I still need these?  Should I manually uninstall them?

Can't open SQL Server Management Studio after installation

All the features are installed with Succeeded status during SQL Server 2012 installation. But when opening SSMS getting an error Microsoft Visual Studio Shell Isolated - Cannot find one or more components. Please reinstall the application.

Please help to fix this error to proceed.

Azure/SQL Server Sharding Limitations

Hi,

I have taken a look online and on forums, but I cannot seem to find information on the limitations (or lack thereof) of sharding on SQL.

https://azure.microsoft.com/en-us/documentation/articles/sql-database-elastic-scale-introduction/

Doing joins on a sharded cluster is something that is not normally architecturally possible.

MySQL NBD cluster, however, is able to perform JOIN operations across a partition due to the presence of distinct data nodes and SQL nodes.

https://www.mysql.com/products/cluster/scalability.html

Does Microsoft Azure SQL and Microsoft SQL server support this functionality as well? If it is possible, is the performance fast enough for production workloads? Are there any other functional limitations to horizontal scaling on Azure SQL?

Can someone tell me whats wrong with my "date"


INSERT INTO Applicants(ApntID,Fname,Lname,SubmissionDate,StateID,SalesRepsID,SalesMgrID,LoanStatusID,LenderID,RegionID,SYNID,AFIID,FFCID,HCDID,TRNID,GENID,MFSID,FLXBID)
                     VALUES(1,'HARDY','ANDERSON',06-24-2016,44,0,6,2,0,99,2,0,0,0,0,0,0,0);


ERROR:

Msg 206, Level 16, State 2, Line 1
Operand type clash: int is incompatible with date
ApntID	int	Unchecked
FName	varchar(25)	Unchecked
LName	varchar(25)	Checked
Submissiondate	date	Checked
SALESREPSID	int	Checked
SALESMGRID	int	Checked
LOANSTATUSID	int	Checked
REGIONID	int	Checked
SYNID	int	Checked
AFIID	int	Checked
FFCID	int	Checked
HCDID	int	Checked
TRNID	int	Checked
GENID	int	Checked
MFSID	int	Checked
FLXBID	int	Checked
		Unchecked



JAMAICAN_SQL


Inner join problem

I am hoping someone can point out where I am going wrong with this because I have spent quite some time trying to resolve this by googling but getting nowhere.  I am writing a select query to create a report which pulls information from numerous linked tables.  I am only using Inner Join to link the tables together.  All of the joins work fine until I add my final Inner Join to pull a description from a lookup table.  When I add that join in I get an Invalid Object Name error for tbLookup. The table is definitely correctly spelled and the primary and foreign keys are definitely correct because I have tested them in a separate simpler query, which works.  If I take tbLookup table out of the script then it runs correctly.  Any help would be much appreciated  The script is below:

SELECT bu.BusinessUnitName AS [Business Unit Name]
, l.LeaseTitle
, cs.NetAmount
, pp.Description AS [Payment Period]
, RTrim(Coalesce(ct.FirstName + ' ','')+ + Coalesce(ct.LastName + ' ', '')) As Fullname
, cs.RangeStartDate
, cs.RangeEndByDate
, lu.Description AS [Payment Term]
, av.Value AS [Profit Centre]
, av1.Value AS [Sales Office]
FROM tbBusinessUnit AS bu INNER JOIN
tbBuildingLinkBusinessUnit AS blbu ON bu.BusinessUnitID = blbu.BusinessUnitID INNER JOIN
tbBuilding AS bl ON blbu.BuildingID = bl.BuildingID INNER JOIN
tbUnitLocation AS ul ON bl.BuildingID = ul.LocationID INNER JOIN
tbUnit AS u ON ul.UnitID = u.UnitID INNER JOIN
tbLease AS l ON u.UnitID = l.UnitID INNER JOIN
tbChargeSchedule AS cs ON l.LeaseUID = cs.ParentID INNER JOIN
tbPaymentPeriod AS pp ON cs.PaymentPeriodID = pp.PaymentPeriodID INNER JOIN
tbLeaseParty AS lp ON l.LeaseUID = lp.LeaseUID INNER JOIN
tbContactLink AS cl ON lp.LeasePartyID = cl.LocationID INNER JOIN
tbContact AS ct ON cl.ContactUID = ct.ContactUID INNER JOIN
tbAttributeValue AS av ON bu.BusinessUnitID = av.ParentID INNER JOIN
tbAttributeValue AS av1 ON bu.BusinessUnitID = av1.ParentID INNER JOIN
tbLookup AS lu ON cs.PaymentTermID = lu.LookUpID
WHERE av.AttributeTemplateDefinitionLinkID = 30
AND av1.AttributeTemplateDefinitionLinkID = 31
AND l.IsCurrent = 1
AND ul.LocationParentID = 20
AND cs.RangeEndByDate > '2016/09/01'  



How should I change SQL query in order to it works in tableau?

I have a SQL query which shows time activity of each user. Database is Microsoft SQL Server on Windows Server 2008. This query works in SQL Server 2008. But when I connecting to SQL Server and use the query in tableau, request does not work.

There are parameters Parameters.Date1 and Parameters.Date2 on my worksheet in tableau. I would like to use Parameters.Date1 and Parameters.Date2 instead of @time.

Help me please with changing this query, in order to it works in tableau with using of parameters Parameters.Date1 and Parameters.Date2 instead of @time.

The result of the query:

USER,Date,Total time

USER1,2016-09-22,07:00:00.0000000
USER2,2016-09-22,08:00:00.0000000
USER3,2016-09-22,05:00:00.0000000

SQL query:

DECLARE@time datetimeset@time ='08.09.2016'SELECT[User], CAST(DATEADD(SECOND, sum(datediff(DAY,@time,[Start])),@time)AS date)'Date', CAST(DATEADD(SECOND, sum(datediff(SECOND,'00:00:00',[Period])),'00:00:00')AS time)'Total time'FROM[User].[dbo].[UserAction]WHERE[Start]>=@time+'00:00:00'and[Start]<=@time+'23:59:59'GROUPBY[USER]

input data to build the query:

USER,Start,End,Period

USER1,2016-09-2209:00:00.000,2016-09-2212:00:00.000,03:00:00
USER1,2016-09-2212:00:00.000,2016-09-2213:00:00.000,01:00:00
USER1,2016-09-22,13:00:00.000,2016-09-2216:00:00.000,03:00:00
USER2,2016-09-22,09:00:00.000,2016-09-2213:00:00.000,04:00:00
USER2,2016-09-22,13:00:00.000,2016-09-2217:00:00.000,04:00:00
USER3,2016-09-22,09:00:00.000,2016-09-2210:00:00.000,01:00:00
USER3,2016-09-22,10:00:00.000,2016-09-2212:00:00.000,02:00:00
USER3,2016-09-22,12:00:00.000,2016-09-2214:00:00.000,02:00:00


Download SQL Server 2012 Enterprise edition

I am looking to download SQL Server 2012 Enterprise Edition.However,I can see only 2012 Express edition or the latest version offering(2016).If anyone can share me the link to download SQL Server 2012 Enterprise Edition?

Also kindly share details on when SQL Server 2012 is getting Out of Support.

Thanks!!!

Licensing

Simply question I hope. I know if I have a sql server running on a win 2012 server and 100 users access it, I need 100 sql user cals plus the 100 win server 2012 cals. Now if I add a second sql server say running a different application on another win server 2012, do I need to purchase another 100 sql cals? I know I do not need to purchase another 100 server 2012 cals but I am not sure the sql cals work the same way.

thanks

 

Azure SQL vs Umbraco CMS and Continuous Integration

Hi.

We have an Umbraco CMS installed as WebApp. It uses two SQL databases.

The question is - what is the best approach for updates/deployments?

We have a code stored in Github and Hashicorp's GoCD as Continuous Integration server. For code there is no problem at all - we just use MSDeploy to update web.config and copy files. 

But what about SQL databases? We have a DEV environment, which has some media and localization updates. It includes database changes. Obviously - we can't just switch PROD to STAGE databases, as PROD have updates from some external users, and STAGE - have changes, which is not applied to PROD yet.

I'm looking on to "Synchronize" facility - but not sure this is the correct way. 

Any tips appreciated.


Use a previous instance of SQL Server

Hello,

Can we use previous instance of SQL server? I had reinstalled my OS and had to reinstall the SQL Server. I have all the old files of my previous instance and would like to use the old instance instead of new instance that I recently set up.

Thank You,

Indrajit

No return Value

Having trouble with getting return value from SQL management Studio, even with the most basic Queries. 

Worked fine yesterday but no longer:

USE Adventureworks2014;

GO

SELECT *

FROM Person

If I change the FROM clause to Sales instead 

FROM Sales

I get this error:

Invalid object Name 'Sales'


I guess I have accidentally turned some setting on or off

How to store a word file document into database

I'm using C# and Sql Sever, I want to know how to store a word file document (writting in Office word) into database. Please tell me the data type of field and code that is use to insert doc in database.

Port range for SQL

Hello support,

I would like to know the range of port that SQL suggestion to use. I don't know which Port we can use.

So now I use port 45322 for SQL database server, so could I use this port?

And could you provide me the range of port that available to use?

Thanks,

Roath


catastrofical failure when creating or editting a SQL job

Hello everyone

Dont know if this is the correct place to post this question but, I am having an issue for quite some time now. Everytime i try to create or edit a SQL job SSMS i get the following error:

Image may be NSFW.
Clik here to view.
error message


Advanced Information:

    ===================================



    Katastrofal fejl





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

    Program Location:



       at Microsoft.SqlServer.Dts.Runtime.Application.get_LogProviderInfos()

       at Microsoft.DataTransformationServices.DTSExecUI.Controls.LoggingCtrl..ctor(IDTSExecViewManager treePanel)

       at Microsoft.SqlServer.Management.SqlManagerUI.DTSJobSubSystemDefinition.InitializeControls()

       at Microsoft.SqlServer.Management.SqlManagerUI.DTSJobSubSystemDefinition..ctor(CDataContainer dataContainer, IMessageBoxProvider messageProvider)

       at Microsoft.SqlServer.Management.SqlManagerUI.JobStepSubSystems..ctor(CDataContainer dataContainer, JobStepData data, IMessageBoxProvider messageProvider, IServiceProvider serviceProvider)

       at Microsoft.SqlServer.Management.SqlManagerUI.JobStepProperties.get_SubSystems()

       at Microsoft.SqlServer.Management.SqlManagerUI.JobStepProperties.InitializeStepCombo()

       at Microsoft.SqlServer.Management.SqlManagerUI.JobStepProperties.InitializeData()

       at Microsoft.SqlServer.Management.SqlManagerUI.JobStepProperties.OnInitialization()

       at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.SetView(Int32 index, TreeNode node)

       at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.SelectCurrentNode()

       at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.InitializeUI(ViewSwitcherTreeView treeView, ISqlControlCollection viewsHolder, Panel rightPane)

       at Microsoft.SqlServer.Management.SqlMgmt.LaunchForm.InitializeForm(XmlDocument doc, IServiceProvider provider, ISqlControlCollection control)

       at Microsoft.SqlServer.Management.SqlMgmt.LaunchForm..ctor(ISqlControlCollection control, IServiceProvider provider)

       at Microsoft.SqlServer.Management.SqlManagerUI.JobSteps.editJobStep_Click(Object sender, EventArgs e)

       at System.Windows.Forms.Control.OnClick(EventArgs e)

       at System.Windows.Forms.Button.OnClick(EventArgs e)

       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

       at System.Windows.Forms.Control.WndProc(Message& m)

       at System.Windows.Forms.ButtonBase.WndProc(Message& m)

       at System.Windows.Forms.Button.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.RunDialog(Form form)

       at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)

       at System.Windows.Forms.Form.ShowDialog()

       at Microsoft.SqlServer.Management.SqlMgmt.RunningFormsTable.RunningFormsTableImpl.ThreadStarter.StartThread()



    ===================================



    Katastrofal fejl





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

    Program Location:



       at Microsoft.SqlServer.Dts.Runtime.Wrapper.ApplicationClass.get_LogProviderInfos()

       at Microsoft.SqlServer.Dts.Runtime.Application.get_LogProviderInfos()

I have tried with several version SSMS 2012, 2014, 2016 but still the same problem. It can't be a rights problem since i have logged on a server with my user and created/editted a job with no issues. I am running Windows 7 Enterprise SP1. Has anyone experienced this issue or can help me fix it?

Thanks in advanced. 

                                                                                                                                                                                                                                                     

SQL Waits

Hi Team,

 we are getting below normal waits 

wait_typewaiting_tasks_countwait_time_msXE_TIMER_EVENT1875785629069774REQUEST_FOR_DEADLOCK_SEARCH11240925628957896SQLTRACE_INCREMENTAL_FLUSH_SLEEP14039795628870612LAZYWRITER_SLEEP56557615627325891LOGMGR_QUEUE256157725623780671

when ever it reached some wait status need to raise alerts how can we create alerts for these waits

Please suggest me.



subu


Sql Server Query taking long time to execute

Hi All,

The below query in SQL server takes long time to execute. I was using this query in SSIS SQL Execute task which also took a lot of time. It ran fine before but now its taking around 2 hrs. Could you guys please help me what can I do to optimize it?

SELECT DISTINCT RIGHT(BizTalk_POA_HEADER.PONUMBER,6) AS PONUMBER,

       Suppliers.SupplierName,
       Company_Details.CompanyName,
       Company_Details.[Email],
       BizTalk_POA_HEADER.[DateDelivery]

       FROM BizTalk_POA_HEADER INNER JOIN
       PO_Details ON RIGHT
       (BizTalk_POA_HEADER.PONUMBER,6) =
       PO_Details.PoNumber INNER JOIN

       PO ON PO_Details.PurchaseOrderID =
       PO.PurchaseOrderID INNER JOIN
       SupplierDetails ON PO.SupplierDetailsID =
       SupplierDetails.SuppliersDetailsID INNER JOIN
       Suppliers ON SupplierDetails.SupplierID =
       Suppliers.SupplierID INNER JOIN
       Company_Details ON PO.CompanyID =
       Company_Details.CompanyDetailsID


WHERE    (RIGHT(BizTalk_POA_HEADER.PONUMBER,6) = '673272')

 


shivangdesai

How to do Disaster recovery Testing for SQL server agent jobs ?

I would like to do Disaster recovery testing of SQL server agent jobs, please advise how to perform.

These jobs will load data from different sources to destination server, in order to load the data ETL packages are developed using SSIS.

Thanks,

Ravi

Business Intelligence Developer - Any good books/sites?

Good morning,

I recently landed a role within our organisation as a Business Intelligence Developer which I start in November/December. I was shocked as I have no real developer skills. The reason I think I was given the role is my extensive knowledge of the organisation and the data i'll be working with added to the fact a learn at a very fast pace. I'm a very good reporting analyst and have created a number of ETL processes in my current role but as we never had access to SSIS I had to go through the Access Import csv route to get them into SQL tables before running the SP's and finally outputing into views etc.

Again must stress I am very new to Development side and will probably spend the next 6-12 months heaving learning but I don't want to learn bad habits and keen to find some quality resources (other than here) to aid in this new role.

When I asked my new manager for some books to read he advised on the following:

SQL Server Integration Services Design Patterns

SQL Antipatterns: Avoiding the Pitfalls of Database Programming (Pragmatic Programmers)

Business Intelligence Mark-Up Language

This gives you an idea of what he wants me to start off with, any advice and pointers are more than welcome and I will be a regular user now of these forums.

Viewing all 6989 articles
Browse latest View live


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