- SQL Server service packs and versions
- SQL Server support lifecycle
- SQL 2012 Edition Comparison
- SQL 2012 Hardware and Software Requirements
- SQL Capacity Specifications
- SQL 2008 R2 Edition Comparison
- SQL 2008 R2 – Configuring Virtual Memory
- SQL 2008 R2 Hardware and Software Requirements
- SQL 2000 and 2005 Capacity Specifications
- SQL Server Management Studio Standard Reports – by Mariano Gomez
SQL Server Resources
25 Responses to “SQL Server Resources”
Leave a Reply Cancel reply
Search this blog:
Join 3,139 other subscribers
GP Reports Viewer Newsletter
Sign up for the GP Reports Viewer Newsletter to get reporting tips via email
articles
awards
Bank Reconciliation
book
Crystal Reports
Dynamics GP
Excel reports
Extender
featured
Fixed Assets
FRx
General Ledger
GP 8.0
GP 9.0
GP 10.0
GP 2010
GP 2013
GP 2015
GP Reports code
GP Reports Viewer
GP SQL stored procedure
GP SQL view
GP table information
Integration Manager
Inventory
Management Reporter
Microsoft
Microsoft MVP
Miscellaneous
MSDynamicsWorld
Payables
Purchase Order Processing
Receivables
Sales Order Processing
security
service pack
SmartList Builder
SQL code
SQL Server
Support Debugging Tool
support lifecycle
version
Vista
Windows 7
year end close
-
Using credit cards to pay vendors in Dynamics GP January 4, 2009
-
SQL view for Payables GL distributions in Dynamics GP November 28, 2008
-
SQL view for all posted GL transactions in Dynamics GP August 11, 2009
-
Sales Transaction Entry GL distributions in Dynamics GP December 8, 2008
-
SQL view to show AP apply information in GP October 22, 2008
-
SQL view for Payables payment apply detail in GP October 22, 2009
-
Year end close in Dynamics GP November 14, 2008
- SQL view with AR apply detail February 15, 2010
-
Granting access to a new SmartList in Dynamics GP October 8, 2008
-
SQL view with all SOP line items in Dynamics GP May 17, 2009
-
SQL view for unposted checks in Dynamics GP August 29, 2017
-
SQL view for rolling 12 months of sales by item by site in Dynamics GP April 20, 2017
-
Dynamics GP sales amounts and quantities for rolling 12 months March 14, 2017
-
Updating Dynamics GP data directly in SQL January 17, 2017
-
Did you know you can change Void dates on Payables transactions? September 20, 2016
-
Refreshable Excel report for monthly actuals vs. budgets in Dynamics GP May 25, 2016
-
SQL code to show top X percent of vendor data March 21, 2016
-
Discount from Packt Publishing September 15, 2015
-
Refreshable Excel report for historical GL trial balance in Dynamics GP August 13, 2015
-
Refreshable Excel report for monthly GL budget in Dynamics GP April 28, 2015
-
Victoria Yudin: Hi Stephanie, I just tested setting it up in my G...
-
Stephanie Crawley: Yep, works like a dream when i do that. Our worka...
-
Victoria Yudin: Hi Stephanie, Very strange. Are you able to run i...
-
Stephanie Crawley: Victoria, I did run the grant script. The weirde...
-
Victoria Yudin: Hi Stephanie, Did you make sure to give DYNGRP pe...
-
Stephanie Crawley: Victoria, thank you so much for the quick response...
-
Victoria Yudin: Hi Stephanie, In SmartList Builder you first have...
-
Stephanie Crawley: I created this view to use in Builder. The view i...
-
Lenny: Thank you so much for sharing all this info, espec...
-
Victoria Yudin: Hi Denise, There is nowhere in AP you can see thi...
Links
Blogroll
- Aaron Berquist
- Amber Bell
- Beat Bucher
- Constance Quigley
- David Musgrave
- Developing for Dynamics GP
- Devon Southall
- Dwight Specht
- Dynamics GP Engineering Team
- Dynamics GP Land
- Dynamics GP Support and Services Blog
- DynamicsCare
- eOne Dynamics GP and CRM Blog
- ERP Software Blog
- Frank Hamelly
- Gloria Braunschweig
- GSL Blog
- Ian Grieve
- Ian Stewart
- Jan Harrigan – FRx and MR
- Janakiram M.P.
- Jen Kuntz
- Jim Hummer
- Jivtesh Singh
- John Lowther
- Jonathan P Cox
- Les Wright
- Leslie Vail
- Mariano Gomez
- Mark Polino
- Michael D. Johnson II
- Microsoft MVP Blog
- Microsoft Team Blogs
- Mohammad R. Daoud
- MS Dynamics Partner Blog
- Official Dynamics GP Blog
- Ron Wilson
- Rose Business Solutions
- Shawn Dorward – GP Life Hacks
- Sivakumar Venkataraman
- Steve Endow
- Tim Wappat
- Vaidy Mohan
Most Clicked Links
Recent Blog Comments
Victoria Yudin on SQL view with security resourc… | |
Stephanie Crawley on SQL view with security resourc… | |
Victoria Yudin on SQL view with security resourc… | |
Stephanie Crawley on SQL view with security resourc… | |
Victoria Yudin on SQL view with security resourc… |
Hi Victoria,
Does GP provides any out of the box utility to reduce the size of the company databases through archiving, deleting or any other means
LikeLike
Hi Zafar,
No, GP does not provide anything like this except deleting data, which I would strongly recommend against in most situations.
-Victoria
LikeLike
Hi Victoria:
Kindly advise, what type of SQL server 2014 Standar licensing is required (optimal) for GP 2015 R2 with 15 GP users.
LikeLike
SQL server 2014 Standard
LikeLike
Hi Zafar,
This may be a better question for a licensing contact, but I would probably recommend a Server + User CALs. If I recall correctly, SQL Server is licensed by named users (not concurrent users, like GP), so if the 15 GP users is actually 20 different people, you would need 20 User CALs.
-Victoria
LikeLike
Victoria and community. I am going to install the SQL 2005 SP4 service pack this weekend. I have GP 10 SP4. Any known issues out there? Also, I don’t remember off hand, but does GP 10 require me to do any further steps after installing the SQL server service pack?
LikeLike
Allen,
I have not heard of any issues with SQL 2005 SP 4 and GP. There are no further steps in GP after a SQL service pack.
-Victoria
LikeLike
I’ve learned much from your website and it is one of my regular references when working with GP data.
My question is, how do I give GP access to data outside of the GP database?
I have another database on the GP server for auditing purposes, which I will call AUDIT. I created a view called SOPAudit with data from the AUDIT database. I put that view in the GP database. I granted select to DYNGP on the view and granted SQL Table Security to the view using the tools with Smartlist builder. I built a smartlist off of the view. The smartlist works fine only when I am logged in as SA. If I am logged in as a users, even a poweruser, the results of the smartlist is nothing. Obivously I need to grant permissions to the GP users to the AUDIT database. Is there a way to do this from inside of GP? If not, how do I go about granting permissions to all GP users from withing SQL?
Thanks
Adam
LikeLike
Adam,
Does DYNGRP actually have permissions to the other database? If not, that might be the issue.
-Victoria
LikeLike
No DYNGRP does not have permission to the other database. That’s not what I am clear on. Is it possible to give a role in databaseA permission to use database B? Or does one have to create that role in database B and maintain it separately?
LikeLike
Adam,
Good question. This is not my area of expertise…probably a better question for a SQL dba or newsgroup. However, I just tested your scenario and got the same exact results you are seeing. I was able to fix it by giving my GP SQL user access to the non-GP database and granting it SELECT access to the table in the view. Hope that helps get you on the right track.
-Victoria
LikeLike
Hi,
I want a report which is give me oppening balance for all account.
Please guide for this.
Thanks & Regards,
Tanuja
LikeLike
Hi Tanuja,
Opening balance for what? General Ledger? Payables? Receivables? Inventory?
In general, opening balance reports are not that easy to create, as GP does not store balances. So you will typically have to perform calculations to get to the opening balance. I do not have any opening balance scripts posted, but you can check out Mark Polino’s list of SQL scripts to see if anyone else does: http://cid-bc679914609aa946.office.live.com/view.aspx/Downloads/Dynamic%20GP%20SQL%20Scripts.xlsx.
-Victoria
LikeLike
Hi,
I want for General Ledger.
I will try mentioned link.
Tahnks & Regards,
Tanuja
LikeLike
Hi,
Please give me any hints for General Ledger opening balance script , so i can use calculation formula to get this report.
LikeLike
Tanuja,
Try this script: http://msdynamicstips.com/2010/11/17/sql-query-for-gl-trial-balance-gp-2010/.
-Victoria
LikeLike
Hi Victoria,
Thanks, It is helpful.
Thanks & Regards,
Tanuja
LikeLike
Hi Victoria
I need to pull all the records from a static table we created for a certain list of parts name x_CS_INV_LIST.
I have this table joined with 2 others IV00102 and POP10110 to gather inventory qtys and next date the item is due in. The query below is only returning 104 records there should be 300. any ideas? thanks as usual you rock!!!
SELECT DISTINCT
dbo.x_CS_INV_LIST.Code, dbo.x_CS_INV_LIST.[Desc], CASE WHEN ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0)
< 30 THEN 0 ELSE ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0) END AS Qty_Avail, MIN(DISTINCT CONVERT(VARCHAR(10),
dbo.POP10110.PRMDATE, 101)) AS ETA
FROM dbo.IV00102 LEFT OUTER JOIN
dbo.x_CS_INV_LIST ON dbo.IV00102.ITEMNMBR = dbo.x_CS_INV_LIST.Code RIGHT OUTER JOIN
dbo.POP10110 ON dbo.x_CS_INV_LIST.Code = dbo.POP10110.ITEMNMBR
WHERE (dbo.POP10110.POLNESTA 5) AND (dbo.IV00102.LOCNCODE = ‘WHSE’) AND (dbo.POP10110.POLNESTA 6)
GROUP BY dbo.x_CS_INV_LIST.Code, dbo.x_CS_INV_LIST.[Desc], CASE WHEN ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0)
< 30 THEN 0 ELSE ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0) END
LikeLike
Hi Vic,
Just want to make sure I understand your logic, you only want to show items that have a PO and where the line status of not closed or canceled? (I am guessing there is a between the POLNESTA and the numbers in the WHERE clause – it didn’t seem to copy properly in the comment.) Or do you want to show all items that are in inventory, whether or not there is a PO for them? How are you determining that there should be 300 records?
Also, if you’re filtering based on PO line status, why not also filter out received? Wouldn’t those already be in the inventory quantities?
And not too critical in this case, but you don’t need both a DISTINCT and a GROUP BY – they are redundant. You need a GROUP BY here because of the date calculation, so you can get rid of DISTINCT.
-Victoria
LikeLike
Hi Victoria
I need all the records from x_CS_INV_LIST table that is where the 300 comes from. That is a table we made for a specific group of customers
Vic
Thanks for the advice about distinct and group by and Recieved
LikeLike
So yes i want to show all items that are in inventory, whether or not there is a PO for them if they are in x_CS_INV_LIST
thanks so much for all your help!
Happy new Year BTW!!!!!
LikeLike
Hi Vic,
Try the code below. I changed the type of join on the PO table to a left outer join and also moved the filter on the PO line status to the join (from the WHERE clause) – both of those were restricting your results to only return items that are on POs. I also changed it to only bring in line items that were not received, canceled or closed…if you want to change it back to what you had (change the < 4 to < 5 for the POLNESTA).
SELECT
x_CS_INV_LIST.Code, x_CS_INV_LIST.[Desc],
CASE WHEN ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0) < 30
THEN 0 ELSE ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0) END AS Qty_Avail,
MIN(DISTINCT CONVERT(VARCHAR(10),
POP10110.PRMDATE, 101)) AS ETA
FROM IV00102
LEFT OUTER JOIN
x_CS_INV_LIST ON IV00102.ITEMNMBR = x_CS_INV_LIST.Code
-- return all items, whether they are on a PO or not
LEFT OUTER JOIN
POP10110 ON x_CS_INV_LIST.Code = POP10110.ITEMNMBR
AND POP10110.POLNESTA < 4 --excludes received, canceled or closed
WHERE IV00102.LOCNCODE = 'WHSE'
GROUP BY x_CS_INV_LIST.Code, x_CS_INV_LIST.[Desc],
CASE WHEN ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0) < 30
THEN 0 ELSE ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0) END
Happy New Year!
-Victoria
LikeLike
THANK YOU!!!! As usual youe solution worked, the only thing I had to add was a Is not Null on the item code…..Your the best!!!!
SELECT dbo.x_CS_INV_LIST.Code, dbo.x_CS_INV_LIST.[Desc], CASE WHEN ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0)
< 30 THEN 0 ELSE ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0) END AS Qty_Avail, MIN(DISTINCT CONVERT(VARCHAR(10),
dbo.POP10110.PRMDATE, 101)) AS ETA
FROM dbo.IV00102 LEFT OUTER JOIN
dbo.x_CS_INV_LIST ON dbo.IV00102.ITEMNMBR = dbo.x_CS_INV_LIST.Code LEFT OUTER JOIN
dbo.POP10110 ON dbo.x_CS_INV_LIST.Code = dbo.POP10110.ITEMNMBR AND dbo.POP10110.POLNESTA < 4
WHERE (dbo.IV00102.LOCNCODE = 'WHSE')
GROUP BY dbo.x_CS_INV_LIST.Code, dbo.x_CS_INV_LIST.[Desc], CASE WHEN ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0)
< 30 THEN 0 ELSE ROUND(IV00102.QTYONHND – IV00102.ATYALLOC, 0, 0) END
HAVING (dbo.x_CS_INV_LIST.Code IS NOT NULL)
LikeLike
Victoria,
I realize what I am about to ask is probably rudimentary but I’ll ask anyway. Two questions:
I have built a Smartlist and arranged everything as I wanted it, saved it, closed GP and went home. Came back in this morning and while the smartlist I created the day before was still there, the results were not. Does it make a difference whether I pull from a SQL table or Dynamics table? Cannot figure out where my info went.
My smartlist are duplicating data. I created one where I could look at a purchase order and see the sales order associated (essentially SOP_POP link). When I run the Smartlist, items are repeating 4, 5, 6,….times dependent upon the number of total items on the purchase order.
I appreciate your time and expertise.
Sincerely,
Mark
LikeLike
Hi Mark,
Not rudimentary at all…good questions.
Question 1 – the data SmartLists show will always refresh to show current results – there is no saving the actual data, only the report layout. So for example, if you create a SmartList to show all unposted transactions in the GL and right now there are 20 of them, you will get 20 results. If someone posts all of those transactions and you open the SmartList again (or refresh it), you will have no results. Depending on the data, of course, it may never change – for example if you are reporting on all GL transactions in 2005 and you have closed all your years through 2009, it’s highly unlikely that 2005 data will change. If I am misunderstanding your question, please write back with more detail. There should be no difference between using a SQL table and a GP table – they are all really SQL tables. The GP tables will have user friendly names already populated, which might be more convenient, depending on what you’re doing.
Question 2 – duplicate data usually (but not always) means you may have linked tables in a way you didn’t intend or didn’t link on enough fields. Without seeing your SmartList setup, it is difficult to say for sure. The SOP-POP link is done by line item, so I would expect to see multiple lines for any PO or SOP order that has multiple linked lines, however, if you’re seeing that, but multiplied by the number of lines, then you may need to take a closer look at your table links. If you want to write back with your links or your code, I can see if I can help determine what is causing the duplication.
-Victoria
LikeLike