- 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
20 Responses to “SQL Server Resources”
Leave a Reply Cancel reply
Search this blog:
GP Reports Viewer Newsletter
Sign up for the GP Reports Viewer Newsletter to get reporting tips via email every month
Latest Tweets
- Some seriously funny stuff from @steveendow! dynamicsgpland.blogspot.com/2013/05/and-wi… #DPO100MFATIDP 4 days ago
- Nice tip from Francisco Hillyer for importing over 255 in Integration Manager gp.rosebizincblogs.com/2012/09/integr… via @rosebusinesssol #MSDynGP 1 week ago
- The #DPO100MFATIDP for 2013 list is out and I am #5 - wooo hooo! Many thanks to @DougPitcher! bit.ly/10fez3q http://t.co/S9XtQlU627 1 week ago
- I just updated my '#MSDynGP Trial Balance in Excel using FRx' blog post with some newly requested variations: wp.me/pkuMh-tA 1 week ago
- Nice #SQL code from @dgpblogster! #MSDynGP 1 week ago
articles
awards
Bank Reconciliation
book
Convergence
Crystal Reports
Dynamics GP
Extender
featured
Fixed Assets
FRx
General Ledger
GP 8.0
GP 9.0
GP 10.0
GP 2010
GP Reports code
GP Reports Viewer
GP SQL view
GP table information
Integration Manager
Inventory
Management Reporter
maximum capacity
Microsoft
Microsoft MVP
Miscellaneous
MSDynamicsWorld
Payables
Purchase Order Processing
Receivables
Sales Order Processing
security
service pack
SmartList
SmartList Builder
SQL 2008
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
-
Year end close in Dynamics GP
November 14, 2008
-
SQL view with all SOP line items in Dynamics GP
May 17, 2009
-
Granting access to a new SmartList in Dynamics GP
October 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
-
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 for sales by item by month
August 29, 2011
-
Assign sequential numbers in SQL Server
May 7, 2013
-
SQL view for current Receivables aging detail in Dynamics GP
May 1, 2013
-
SQL view for current Payables aging detail in Dynamics GP
April 24, 2013
-
Changing part of a string in SQL Server using REPLACE
March 11, 2013
-
SQL view for sales quantities by item by site by year
February 28, 2013
-
SQL view for Fixed Allocation Accounts in Dynamics GP
January 23, 2013
-
Happy New Year – 2013
January 1, 2013
-
How to add a sparkline to a report in SSRS
November 27, 2012
-
Voiding a partially applied Payables transaction in Dynamics GP
October 11, 2012
-
Big announcement for Microsoft Dynamics GP’s Extender module
October 8, 2012
-
Victoria Yudin: Cal, Yes, DYNGRP needs to be granted permissions ...
-
Calvin: Thanks Victoria, that worked. I gave permissions t...
-
Victoria Yudin: Cal, Did you grant permissions on your view to D...
-
Calvin Lee: Hi Victoria, I created a SLB from a view and can ...
-
Victoria Yudin: Thanks Lyn! I have updated the page with the versi...
-
lynbarr: FYI, MR 2012 RU5 = 2.1.1037.15...
-
Victoria Yudin: Carrie, That would be scenario 2. In GP 2010 and ...
-
Carrie John: This process works great when it's a non-PO transa...
-
Victoria Yudin: Ray, Do you mean you want the same thing that is ...
-
Victoria Yudin: Hi Gina, I have created many historical aging rep...
Links
Blogroll
- Aaron Berquist
- Constance Quigley
- David Musgrave
- Despair Inc.
- Devon Southall
- Dwight Specht
- 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
- Janakiram M.P.
- Jen Kuntz
- Jim Hummer
- Jivtesh Singh
- Joe Puntasecca – fishing
- John Lowther
- 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
- Scott Adams – Dilbert
- Sivakumar Venkataraman
- Vaidy Mohan




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?
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
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
Adam,
Does DYNGRP actually have permissions to the other database? If not, that might be the issue.
-Victoria
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?
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
Hi,
I want a report which is give me oppening balance for all account.
Please guide for this.
Thanks & Regards,
Tanuja
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
Hi,
I want for General Ledger.
I will try mentioned link.
Tahnks & Regards,
Tanuja
Hi,
Please give me any hints for General Ledger opening balance script , so i can use calculation formula to get this report.
Tanuja,
Try this script: http://msdynamicstips.com/2010/11/17/sql-query-for-gl-trial-balance-gp-2010/.
-Victoria
Hi Victoria,
Thanks, It is helpful.
Thanks & Regards,
Tanuja
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
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
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
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!!!!!
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).
SELECTx_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
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)
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
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